diff --git a/docs/section-3-creating-parsers.md b/docs/section-3-creating-parsers.md index faf02c4c..0ecef257 100644 --- a/docs/section-3-creating-parsers.md +++ b/docs/section-3-creating-parsers.md @@ -715,7 +715,7 @@ This function is responsible for recognizing external tokens. It should return ` The third argument to the `scan` function is an array of booleans that indicates which of external tokens are currently expected by the parser. You should only look for a given token if it is valid according to this array. At the same time, you cannot backtrack, so you may need to combine certain pieces of logic. ```c -if (valid_symbols[INDENT] || valid_symbol[DEDENT]) { +if (valid_symbols[INDENT] || valid_symbols[DEDENT]) { // ... logic that is common to both `INDENT` and `DEDENT`