Merge pull request #29 from akshitgautam42/Ex-29

Exercise 29
This commit is contained in:
Akshit Gautam 2023-11-12 16:31:24 +05:30 committed by GitHub
commit 75fa20bad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,8 +12,10 @@
fn main() {
let mut x = 100;
let y = &mut x;
let z = &mut x;
*y += 100;
let z = &mut x;
*z += 1000;
assert_eq!(x, 1200);
}