Last active
November 25, 2015 11:44
-
-
Save jorendorff/62fed5a2bfba33f2f810 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // mut variables are mutable | |
| fn main() { | |
| let mut x = 1; | |
| x += 1; | |
| let mut nums = vec![1, 2, 3]; | |
| nums.push(4); | |
| println!("x is {:?} and nums is {:?}", x, nums); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment