Skip to content

Commit

Permalink
Improve wording
Browse files Browse the repository at this point in the history
Co-Authored-By: Miguel Fonseca <[email protected]>
  • Loading branch information
mtias and mcsf committed Dec 31, 2020
1 parent dfd8830 commit 2fcdddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/blocks/src/api/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export function getMigratedBlock( block, parsedAttributes ) {
// shapes and tries each definition until the input produces a valid result.
// This mechanism seeks to avoid polluting the user-space with machine-
// specific code. An invalid block is thus a block that could not be matched
// successfully to any of the registered deprecation definitions.
// successfully with any of the registered deprecation definitions.
for ( let i = 0; i < deprecatedDefinitions.length; i++ ) {
// A block can opt into a migration even if the block is valid by
// defining isEligible on its deprecation. If the block is both valid
Expand Down Expand Up @@ -690,7 +690,7 @@ const createParse = ( parseImplementation ) => ( content ) =>
}, [] );

/**
* Utilizes an optimized token driven parser based on the Gutenberg grammar spec
Utilizes an optimized token-driven parser based on the Gutenberg grammar spec
* defined through a parsing expression grammar to take advantage of the regular
* cadence provided by block delimiters -- composed syntactically through HTML
* comments -- which, given a general HTML document as an input, returns a block
Expand Down

0 comments on commit 2fcdddb

Please sign in to comment.