Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created June 25, 2019 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rust-play/ed217131caaccaf08feb119f249353fa to your computer and use it in GitHub Desktop.
Save rust-play/ed217131caaccaf08feb119f249353fa to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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