Skip to content

Commit e2c14a9

Browse files
authored
fix comment in lexer.md (#491)
1 parent 5bac43b commit e2c14a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/learn/parser_in_rust/lexer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ Tokenizing keywords will just be matching the identifier from above.
305305

306306
```rust
307307
fn match_keyword(&self, ident: &str) -> Kind {
308-
// all keywords are 1 <= length <= 10
308+
// all keywords are 1 < length <= 10
309309
if ident.len() == 1 || ident.len() > 10 {
310310
return Kind::Identifier;
311311
}

0 commit comments

Comments
 (0)