We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bac43b commit e2c14a9Copy full SHA for e2c14a9
src/docs/learn/parser_in_rust/lexer.md
@@ -305,7 +305,7 @@ Tokenizing keywords will just be matching the identifier from above.
305
306
```rust
307
fn match_keyword(&self, ident: &str) -> Kind {
308
- // all keywords are 1 <= length <= 10
+ // all keywords are 1 < length <= 10
309
if ident.len() == 1 || ident.len() > 10 {
310
return Kind::Identifier;
311
}
0 commit comments