Guest User

Untitled

a guest
Nov 16th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. fn main() {
  2. let mut x = 4;
  3. triple(&mut x);
  4. println!("{}", x);
  5. }
  6.  
  7. fn triple(x: &mut i32) {
  8. *x *= 3;
  9. println!("{}", x);
  10. }
Add Comment
Please, Sign In to add comment