Skip to content

Commit d64b703

Browse files
authored
Auto merge of rust-lang#37960 - samestep:five, r=frewsxcv
Use literal 5 instead of five in book section 4.1 The other two code snippets in this sentence are valid code, so it makes more sense to use the literal `5` rather than the invalid symbol `five`.
2 parents 2217bd7 + 49c6b3c commit d64b703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/variable-bindings.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ let x: i32 = 5;
4747
```
4848

4949
If I asked you to read this out loud to the rest of the class, you’d say “`x`
50-
is a binding with the type `i32` and the value `five`.”
50+
is a binding with the type `i32` and the value `5`.”
5151

5252
In this case we chose to represent `x` as a 32-bit signed integer. Rust has
5353
many different primitive integer types. They begin with `i` for signed integers

0 commit comments

Comments
 (0)