adding guessing game
This commit is contained in:
@@ -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.
@@ -1,3 +0,0 @@
|
|||||||
fn main() {
|
|
||||||
println!("Hello, world!");
|
|
||||||
}
|
|
||||||
@@ -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/
|
||||||
|
|||||||
Reference in New Issue
Block a user