diff options
| author | bors <bors@rust-lang.org> | 2016-11-25 20:19:47 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-25 20:19:47 -0600 |
| commit | d64b7030658c839c60d7c7165e8be19283c3f28c (patch) | |
| tree | 780d188b8434665691af64403ecc919f260503d0 | |
| parent | 2217bd771c55aceff8eac61763af9bff11efd30c (diff) | |
| parent | 49c6b3c23f686448d1ac888739d76b11cbe6355e (diff) | |
Auto merge of #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`.
| -rw-r--r-- | src/doc/book/variable-bindings.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/variable-bindings.md b/src/doc/book/variable-bindings.md index 54316649c71..37b6c0513fc 100644 --- a/src/doc/book/variable-bindings.md +++ b/src/doc/book/variable-bindings.md @@ -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 |
