Created
June 25, 2019 15:25
-
-
Save rust-play/7f1be9483b137e11ee6ba012b77b6b2e 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() { | |
let lines = "привет\nмир\nhello\nworld".lines(); | |
for (linenumber, line) in lines.enumerate() { | |
println!("{}: {}", linenumber, line); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment