adding guessing game

This commit is contained in:
2019-11-21 01:19:22 +00:00
parent 742d6ff181
commit e13f28ccf7
4 changed files with 10 additions and 5 deletions

View File

@@ -7,9 +7,13 @@ fn main() {
let mut guess = String::new(); let mut guess = String::new();
io::stdin().read_line(&mut guess) io::stdin()
.read_line(&mut guess)
.expect("Failed to read line"); .expect("Failed to read line");
println!("You guessed: {}", guess); println!("You guessed: {}", guess);
} }
fn test(arg: String) -> String {
unimplemented!()
}

Binary file not shown.

View File

@@ -1,3 +0,0 @@
fn main() {
println!("Hello, world!");
}

View File

@@ -9,3 +9,7 @@ To do:
-rustup install nightly-x86_64-apple-darwin -rustup install nightly-x86_64-apple-darwin
-rustup component add rls --toolchain nightly-x86_64-apple-darwin -rustup component add rls --toolchain nightly-x86_64-apple-darwin
https://www.reddit.com/r/rust/comments/a40www/sublime_text_3_question/