File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 18
18
fn id < T > ( x : T ) -> T { x }
19
19
20
20
fn main ( ) {
21
- let x = 1_i8 << id ( 17 ) ; // signals overflow when checking is on
21
+ // this signals overflow when checking is on
22
+ let x = 1_i8 << id ( 17 ) ;
22
23
23
24
// ... but when checking is off, the fallback will truncate the
24
25
// input to its lower three bits (= 1). Note that this is *not*
Original file line number Diff line number Diff line change 18
18
fn id < T > ( x : T ) -> T { x }
19
19
20
20
fn main ( ) {
21
- let x = 2_i8 >> id ( 17 ) ; // signals overflow when checking is on
21
+ // this signals overflow when checking is on
22
+ let x = 2_i8 >> id ( 17 ) ;
22
23
23
24
// ... but when checking is off, the fallback will truncate the
24
25
// input to its lower three bits (= 1). Note that this is *not*
You can’t perform that action at this time.
0 commit comments