Skip to content

Commit 9704aad

Browse files
committed
Literal expressions: text improvements from ehuss
1 parent 7baad0a commit 9704aad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expressions/literal-expr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ If the value does not fit in `u128`, the expression is rejected by the parser.
7575
* The `u128` value is converted to the expression's type via a [numeric cast].
7676

7777
> **Note**: The final cast will truncate the value of the literal if it does not fit in the expression's type.
78-
> There is a [lint check] named `overflowing_literals`, defaulting to `deny`, which rejects expressions where this occurs.
78+
> `rustc` includes a [lint check] named `overflowing_literals`, defaulting to `deny`, which rejects expressions where this occurs.
7979
8080
> **Note**: `-1i8`, for example, is an application of the [negation operator] to the literal expression `1i8`, not a single integer literal expression.
8181
@@ -114,7 +114,7 @@ The value of the expression is determined from the string representation of the
114114
115115
> **Note**: `inf` and `NaN` are not literal tokens.
116116
> The [`f32::INFINITY`], [`f64::INFINITY`], [`f32::NAN`], and [`f64::NAN`] constants can be used instead of literal expressions.
117-
> A literal large enough to be evaluated as infinite will trigger the `overflowing_literals` lint check.
117+
> In `rustc`, a literal large enough to be evaluated as infinite will trigger the `overflowing_literals` lint check.
118118
119119
[constant expression]: ../const_eval.md#constant-expressions
120120
[floating-point types]: ../types/numeric.md#floating-point-types

0 commit comments

Comments
 (0)