Skip to content

Commit 99971ea

Browse files
authored
Improve transparency of 5_i32 versus 5i32
1 parent 3eb8bd2 commit 99971ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/scope/borrow.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ fn borrow_i32(borrowed_i32: &i32) {
2121
2222
fn main() {
2323
// Create a boxed i32, and a stacked i32
24+
// Remember: numbers can have arbitrary underscores added for readibility
25+
// 5_i32 is the same as 5i32
2426
let boxed_i32 = Box::new(5_i32);
2527
let stacked_i32 = 6_i32;
2628

0 commit comments

Comments
 (0)