Skip to content

Commit b601c82

Browse files
tokens.md: remove the "examples of invalid integer literals"
These are covered under "Reserved forms similar to number literals"
1 parent 3dc11d3 commit b601c82

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/tokens.md

-14
Original file line numberDiff line numberDiff line change
@@ -405,20 +405,6 @@ Examples of integer literals of various forms:
405405

406406
Note that `-1i8`, for example, is analyzed as two tokens: `-` followed by `1i8`.
407407

408-
Examples of invalid integer literals:
409-
410-
```rust,compile_fail
411-
// uses numbers of the wrong base
412-
413-
0b0102;
414-
0o0581;
415-
416-
// bin, hex, and octal literals must have at least one digit
417-
418-
0b_;
419-
0b____;
420-
```
421-
422408
#### Tuple index
423409

424410
> **<sup>Lexer</sup>**\

0 commit comments

Comments
 (0)