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 5f81f6a commit 71fd6e3Copy full SHA for 71fd6e3
src/tokens.md
@@ -457,11 +457,12 @@ let horse = example.0b10; // ERROR no field named `0b10`
457
> FLOAT_SUFFIX :\
458
> `f32` | `f64`
459
460
-A _floating-point literal_ has one of two forms:
+A _floating-point literal_ has one of three forms:
461
462
* A _decimal literal_ followed by a period character `U+002E` (`.`). This is
463
optionally followed by another decimal literal, with an optional _exponent_.
464
* A single _decimal literal_ followed by an _exponent_.
465
+* A single _decimal literal_ (in which case a suffix is required).
466
467
Like integer literals, a floating-point literal may be followed by a
468
suffix, so long as the pre-suffix part does not end with `U+002E` (`.`).
0 commit comments