daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Oct 21st, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn inc(num: &mut i32) {
  2.     *num += 1;
  3. }
  4.  
  5. fn main() {
  6.     let mut x: i32 = 100;
  7.     inc(&mut x);
  8.     println!("Got {}", x)
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top