diff options
| author | bors <bors@rust-lang.org> | 2016-01-14 13:42:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-01-14 13:42:59 +0000 |
| commit | 02fbf31fb26e0b5eccf34cef8a5f8becef6f3ada (patch) | |
| tree | 554d5d05b0c5f4baee9180cdec5fffd98c10239b /src/doc/reference.md | |
| parent | 5b3a75fe560362b812f2c4947d449558a9472496 (diff) | |
| parent | a964c86d45577f089507a8ecf3e1dc6486166ac2 (diff) | |
| download | rust-02fbf31fb26e0b5eccf34cef8a5f8becef6f3ada.tar.gz rust-02fbf31fb26e0b5eccf34cef8a5f8becef6f3ada.zip | |
Auto merge of #30897 - Manishearth:rollup, r=Manishearth
- Successful merges: #30821, #30869, #30871, #30874, #30879, #30886, #30892 - Failed merges: #30864
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 5f71ee44379..87104b4526f 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -3677,10 +3677,10 @@ sites are: * `let` statements where an explicit type is given. - For example, `128` is coerced to have type `i8` in the following: + For example, `42` is coerced to have type `i8` in the following: ```rust - let _: i8 = 128; + let _: i8 = 42; ``` * `static` and `const` statements (similar to `let` statements). @@ -3690,36 +3690,36 @@ sites are: The value being coerced is the actual parameter, and it is coerced to the type of the formal parameter. - For example, `128` is coerced to have type `i8` in the following: + For example, `42` is coerced to have type `i8` in the following: ```rust fn bar(_: i8) { } fn main() { - bar(128); + bar(42); } ``` * Instantiations of struct or variant fields - For example, `128` is coerced to have type `i8` in the following: + For example, `42` is coerced to have type `i8` in the following: ```rust struct Foo { x: i8 } fn main() { - Foo { x: 128 }; + Foo { x: 42 }; } ``` * Function results, either the final line of a block if it is not semicolon-terminated or any expression in a `return` statement - For example, `128` is coerced to have type `i8` in the following: + For example, `42` is coerced to have type `i8` in the following: ```rust fn foo() -> i8 { - 128 + 42 } ``` |
