Created
June 25, 2019 15:18
-
-
Save rust-play/ed217131caaccaf08feb119f249353fa to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains 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() { | |
// Lesson one. All data in Rust is immutable by default. | |
// So this won't work unless we decalare with "let mut" | |
let s = String::from("Anna"); | |
s = String::from("Coleman"); | |
println!("Hello {}", s); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment