File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3677,10 +3677,10 @@ sites are:
3677
3677
3678
3678
* ` let ` statements where an explicit type is given.
3679
3679
3680
- For example, ` 128 ` is coerced to have type ` i8 ` in the following:
3680
+ For example, ` 42 ` is coerced to have type ` i8 ` in the following:
3681
3681
3682
3682
``` rust
3683
- let _ : i8 = 128 ;
3683
+ let _ : i8 = 42 ;
3684
3684
```
3685
3685
3686
3686
* ` static ` and ` const ` statements (similar to ` let ` statements).
@@ -3690,36 +3690,36 @@ sites are:
3690
3690
The value being coerced is the actual parameter, and it is coerced to
3691
3691
the type of the formal parameter.
3692
3692
3693
- For example, ` 128 ` is coerced to have type ` i8 ` in the following:
3693
+ For example, ` 42 ` is coerced to have type ` i8 ` in the following:
3694
3694
3695
3695
``` rust
3696
3696
fn bar (_ : i8 ) { }
3697
3697
3698
3698
fn main () {
3699
- bar (128 );
3699
+ bar (42 );
3700
3700
}
3701
3701
```
3702
3702
3703
3703
* Instantiations of struct or variant fields
3704
3704
3705
- For example, ` 128 ` is coerced to have type ` i8 ` in the following:
3705
+ For example, ` 42 ` is coerced to have type ` i8 ` in the following:
3706
3706
3707
3707
``` rust
3708
3708
struct Foo { x : i8 }
3709
3709
3710
3710
fn main () {
3711
- Foo { x : 128 };
3711
+ Foo { x : 42 };
3712
3712
}
3713
3713
```
3714
3714
3715
3715
* Function results, either the final line of a block if it is not
3716
3716
semicolon-terminated or any expression in a ` return ` statement
3717
3717
3718
- For example, ` 128 ` is coerced to have type ` i8 ` in the following:
3718
+ For example, ` 42 ` is coerced to have type ` i8 ` in the following:
3719
3719
3720
3720
``` rust
3721
3721
fn foo () -> i8 {
3722
- 128
3722
+ 42
3723
3723
}
3724
3724
```
3725
3725
You can’t perform that action at this time.
0 commit comments