Skip to content

Commit 71fd6e3

Browse files
committed
Add the 5f32 case to the text description of floating-point literals
1 parent 5f81f6a commit 71fd6e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tokens.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,11 +457,12 @@ let horse = example.0b10; // ERROR no field named `0b10`
457457
> FLOAT_SUFFIX :\
458458
>    `f32` | `f64`
459459
460-
A _floating-point literal_ has one of two forms:
460+
A _floating-point literal_ has one of three forms:
461461

462462
* A _decimal literal_ followed by a period character `U+002E` (`.`). This is
463463
optionally followed by another decimal literal, with an optional _exponent_.
464464
* A single _decimal literal_ followed by an _exponent_.
465+
* A single _decimal literal_ (in which case a suffix is required).
465466

466467
Like integer literals, a floating-point literal may be followed by a
467468
suffix, so long as the pre-suffix part does not end with `U+002E` (`.`).

0 commit comments

Comments
 (0)