Skip to content

Instantly share code, notes, and snippets.

@loloof64
Created September 11, 2016 18:43
Show Gist options
  • Select an option

  • Save loloof64/4ca978ead66146b05e04bddd2ef6186a to your computer and use it in GitHub Desktop.

Select an option

Save loloof64/4ca978ead66146b05e04bddd2ef6186a to your computer and use it in GitHub Desktop.
Reversing a string in Rust
fn main() {
let name_reversed:String = "Loloof64".chars().rev().collect();
println!("{}", name_reversed);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment