Moving into rustbook namespace

This commit is contained in:
Dan Buch
2016-08-30 22:50:20 -04:00
parent 051f50ec61
commit 0cbb22dad6
4 changed files with 0 additions and 0 deletions

View File

@@ -1 +0,0 @@
target/

View File

@@ -1,4 +0,0 @@
[root]
name = "guessing_game"
version = "0.1.0"

View File

@@ -1,6 +0,0 @@
[package]
name = "guessing_game"
version = "0.1.0"
authors = ["Dan Buch <daniel.buch@gmail.com>"]
[dependencies]

View File

@@ -1,14 +0,0 @@
use std::io;
fn main() {
println!("Guess the number!");
println!("Please input your guess.");
let mut guess = String::new();
io::stdin().read_line(&mut guess)
.expect("Failed to read line");
println!("You guessed: {}", guess);
}