Fix incorrect comment

redux
David Majda 15 years ago
parent 8a2e21fa3f
commit c0f0d56975

@ -1007,22 +1007,19 @@ PEG.Compiler = {
" *",
" * - |result !== null|",
" * - |pos === input.length|",
" * - |rightmostMatchFailuresExpected.length| may or may not contain",
" * something",
" * - |rightmostMatchFailuresExpected| may or may not contain something",
" *",
" * 2. The parser successfully parsed only a part of the input.",
" *",
" * - |result !== null|",
" * - |pos < input.length|",
" * - |rightmostMatchFailuresExpected.length| may or may not contain",
" * something",
" * - |rightmostMatchFailuresExpected| may or may not contain something",
" *",
" * 3. The parser did not successfully parse any part of the input.",
" *",
" * - |result === null|",
" * - |pos === 0|",
" * - |rightmostMatchFailuresExpected.length| contains at least one",
" * failure",
" * - |rightmostMatchFailuresExpected| contains at least one failure",
" *",
" * All code following this comment (including called functions) must",
" * handle these states.",

@ -3401,22 +3401,19 @@ PEG.grammarParser = (function(){
*
* - |result !== null|
* - |pos === input.length|
* - |rightmostMatchFailuresExpected.length| may or may not contain
* something
* - |rightmostMatchFailuresExpected| may or may not contain something
*
* 2. The parser successfully parsed only a part of the input.
*
* - |result !== null|
* - |pos < input.length|
* - |rightmostMatchFailuresExpected.length| may or may not contain
* something
* - |rightmostMatchFailuresExpected| may or may not contain something
*
* 3. The parser did not successfully parse any part of the input.
*
* - |result === null|
* - |pos === 0|
* - |rightmostMatchFailuresExpected.length| contains at least one
* failure
* - |rightmostMatchFailuresExpected| contains at least one failure
*
* All code following this comment (including called functions) must
* handle these states.

Loading…
Cancel
Save