Skip to content

Commit 00a2ac6

Browse files
committed
tokens.md: link to specific headings in literal-expr.md
Now that page is longer, linking to the top of the page isn't so helpful
1 parent 659f856 commit 00a2ac6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tokens.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ An _integer literal_ has one of four forms:
462462

463463
Like any literal, an integer literal may be followed (immediately, without any spaces) by a suffix as described above.
464464
The suffix may not begin with `e` or `E`, as that would be interpreted as the exponent of a floating-point literal.
465-
See [literal expressions] for the effect of these suffixes.
465+
See [Integer literal expressions] for the effect of these suffixes.
466466

467467
Examples of integer literals which are accepted as literal expressions:
468468

@@ -559,7 +559,7 @@ A _floating-point literal_ has one of two forms:
559559
Like integer literals, a floating-point literal may be followed by a
560560
suffix, so long as the pre-suffix part does not end with `U+002E` (`.`).
561561
The suffix may not begin with `e` or `E` if the literal does not include an exponent.
562-
See [literal expressions] for the effect of these suffixes.
562+
See [Floating-point literal expressions] for the effect of these suffixes.
563563

564564
Examples of floating-point literals which are accepted as literal expressions:
565565

@@ -767,12 +767,14 @@ Similarly the `r`, `b`, `br`, `c`, and `cr` prefixes used in raw string literals
767767
[extern crates]: items/extern-crates.md
768768
[extern]: items/external-blocks.md
769769
[field]: expressions/field-expr.md
770+
[Floating-point literal expressions]: expressions/literal-expr.md#floating-point-literal-expressions
770771
[floating-point types]: types/numeric.md#floating-point-types
771772
[function pointer type]: types/function-pointer.md
772773
[functions]: items/functions.md
773774
[generics]: items/generics.md
774775
[identifier]: identifiers.md
775776
[if let]: expressions/if-expr.md#if-let-expressions
777+
[Integer literal expressions]: expressions/literal-expr.md#integer-literal-expressions
776778
[keywords]: keywords.md
777779
[lazy-bool]: expressions/operator-expr.md#lazy-boolean-operators
778780
[literal expressions]: expressions/literal-expr.md

0 commit comments

Comments
 (0)