Skip to content

Commit

Permalink
Use proper footnote for number literals _ separator note
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet authored Dec 29, 2023
1 parent f9f5b5b commit dc74a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ Literals are tokens used in [literal expressions].

#### Numbers

| [Number literals](#number-literals)`*` | Example | Exponentiation |
| [Number literals](#number-literals)[^nl] | Example | Exponentiation |
|----------------------------------------|---------|----------------|
| Decimal integer | `98_222` | `N/A` |
| Hex integer | `0xff` | `N/A` |
| Octal integer | `0o77` | `N/A` |
| Binary integer | `0b1111_0000` | `N/A` |
| Floating-point | `123.0E+77` | `Optional` |

`*` All number literals allow `_` as a visual separator: `1_234.0E+18f64`
[^nl]: All number literals allow `_` as a visual separator: `1_234.0E+18f64`

#### Suffixes

Expand Down

0 comments on commit dc74a75

Please sign in to comment.