Skip to content

Commit c954202

Browse files
authored
Merge pull request #1707 from wparad/patch-1
Improve transparency of 5_i32 versus 5i32
2 parents f7b6860 + ebde571 commit c954202

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/scope/borrow.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ fn borrow_i32(borrowed_i32: &i32) {
2020
}
2121
2222
fn main() {
23-
// Create a boxed i32, and a stacked i32
23+
// Create a boxed i32 in the heap, and a i32 on the stack
24+
// Remember: numbers can have arbitrary underscores added for readability
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)