Skip to content

Commit 2b1379a

Browse files
Add comments with output of prints
1 parent d4c1a45 commit 2b1379a

File tree

1 file changed

+3
-3
lines changed
  • contents/stacks_and_queues/code/rust

1 file changed

+3
-3
lines changed

contents/stacks_and_queues/code/rust/Stack.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn main() {
3939
i32stack.push(5);
4040
i32stack.push(6);
4141

42-
println!("{:?}", i32stack.pop().unwrap());
43-
println!("{:?}", i32stack.size());
44-
println!("{:?}", i32stack.top().unwrap());
42+
println!("{:?}", i32stack.pop().unwrap()); // 6
43+
println!("{:?}", i32stack.size()); // 2
44+
println!("{:?}", i32stack.top().unwrap()); // 5
4545
}

0 commit comments

Comments
 (0)