Skip to content

Commit

Permalink
Docs: Fix deprecated-blocks example (#10717)
Browse files Browse the repository at this point in the history
## Description
I changed a small error in the deprecated-blocks documentation

## How has this been tested?
I looked in my Github repo if the markdown file preview was ok

## Types of changes
Typo in documentation
  • Loading branch information
ArnaudBan authored and ajitbohra committed Oct 19, 2018
1 parent 611fe31 commit 5a546b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/block-api/deprecated-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ registerBlockType( 'gutenberg/block-with-deprecated-version', {
},

save: function( props ) {
return el( 'div', {}, props.attributes.text );
return el( 'div', {}, props.attributes.content );
},

deprecated: [
Expand Down Expand Up @@ -153,7 +153,7 @@ registerBlockType( 'gutenberg/block-with-deprecated-version', {
},

save( props ) {
return <div>{ props.attributes.text }</div>;
return <div>{ props.attributes.content }</div>;
},

deprecated: [
Expand Down

0 comments on commit 5a546b0

Please sign in to comment.