]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/rust-by-example/src/scope/borrow.md
New upstream version 1.74.1+dfsg1
[rustc.git] / src / doc / rust-by-example / src / scope / borrow.md
index 72c70e736a1a095069ccd5650457d12d4231e4c4..018f00c35cfb44f033a914d979ee6d34e33cbe07 100644 (file)
@@ -20,7 +20,9 @@ fn borrow_i32(borrowed_i32: &i32) {
 }
 
 fn main() {
-    // Create a boxed i32, and a stacked i32
+    // Create a boxed i32 in the heap, and a i32 on the stack
+    // Remember: numbers can have arbitrary underscores added for readability
+    // 5_i32 is the same as 5i32
     let boxed_i32 = Box::new(5_i32);
     let stacked_i32 = 6_i32;