From 2fcdddb26eb5bdb787c51409d3a1862a5ec29ff2 Mon Sep 17 00:00:00 2001 From: Matias Ventura Date: Mon, 17 Feb 2020 18:22:31 +0100 Subject: [PATCH] Improve wording Co-Authored-By: Miguel Fonseca --- packages/blocks/src/api/parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/blocks/src/api/parser.js b/packages/blocks/src/api/parser.js index 39f8ae19d1d636..63570bae6baeb8 100644 --- a/packages/blocks/src/api/parser.js +++ b/packages/blocks/src/api/parser.js @@ -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 @@ -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