From 8e62ab3e5dc57f5db7581cf763bcbbea75ab58eb Mon Sep 17 00:00:00 2001 From: "Havvy (Ryan Scheel)" Date: Mon, 11 Jan 2021 15:12:22 -0800 Subject: [PATCH] Add a float examle without a `.`. This seems to me to me the only actionable thing to the confusion in pr #922. Also, move a link ref down to the rest of the link refs. --- src/tokens.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tokens.md b/src/tokens.md index f329ce912..15d8468a0 100644 --- a/src/tokens.md +++ b/src/tokens.md @@ -509,6 +509,7 @@ Examples of floating-point literals of various forms: 0.1f64; // type f64 0.1f32; // type f32 12E+99_f64; // type f64 +5f32; // type f32 let x: f64 = 2.; // type f64 ``` @@ -517,9 +518,7 @@ syntax with a floating point literal ending in a period. `2.f64` would attempt to call a method named `f64` on `2`. The representation semantics of floating-point numbers are described in -["Machine Types"]. - -["Machine Types"]: types/numeric.md +["Machine Types"][machine types]. ### Boolean literals @@ -637,6 +636,7 @@ them are referred to as "token trees" in [macros]. The three types of brackets [if let]: expressions/if-expr.md#if-let-expressions [keywords]: keywords.md [lazy-bool]: expressions/operator-expr.md#lazy-boolean-operators +[machine types]: types/numeric.md [macros]: macros-by-example.md [match]: expressions/match-expr.md [negation]: expressions/operator-expr.md#negation-operators