Created
April 5, 2016 01:30
-
-
Save kscz/d3750cd8600693903ba7493f9a6d22e8 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
fn main() { | |
let mut x = String::new(); | |
foo(&mut x); | |
println!("{} to the other side.", x); | |
} | |
fn foo(bar: &mut String) -> () { | |
bar.push_str("Break on through"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment