Skip to content

Commit

Permalink
Auto merge of #37960 - samestep:five, r=frewsxcv
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
bors authored Nov 26, 2016
2 parents 2217bd7 + 49c6b3c commit d64b703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/variable-bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ let x: i32 = 5;
```

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

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

0 comments on commit d64b703

Please sign in to comment.