diff --git a/nostarch/chapter02.md b/nostarch/chapter02.md index 5c719c000..cadfb3500 100644 --- a/nostarch/chapter02.md +++ b/nostarch/chapter02.md @@ -231,7 +231,7 @@ newline and other whitespace to help break up long lines. We could have written this code as: ```rust,ignore -io::stdin().read_line(&mut guess).expect("failed to read line"); +io::stdin().read_line(&mut guess).expect("Failed to read line"); ``` However, one long line is difficult to read, so it’s best to divide it, two @@ -501,7 +501,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); println!("You guessed: {}", guess); } @@ -592,7 +592,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); println!("You guessed: {}", guess); @@ -706,7 +706,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); let guess: u32 = guess.trim().parse() .expect("Please type a number!"); @@ -817,7 +817,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); let guess: u32 = guess.trim().parse() .expect("Please type a number!"); @@ -900,7 +900,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); let guess: u32 = guess.trim().parse() .expect("Please type a number!"); @@ -1009,7 +1009,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); let guess: u32 = match guess.trim().parse() { Ok(num) => num, diff --git a/nostarch/odt/chapter02.doc b/nostarch/odt/chapter02.doc index 66fecb1d7..2aef420a9 100644 Binary files a/nostarch/odt/chapter02.doc and b/nostarch/odt/chapter02.doc differ diff --git a/src/ch02-00-guessing-game-tutorial.md b/src/ch02-00-guessing-game-tutorial.md index a8b3e9393..37442562c 100644 --- a/src/ch02-00-guessing-game-tutorial.md +++ b/src/ch02-00-guessing-game-tutorial.md @@ -236,7 +236,7 @@ newline and other whitespace to help break up long lines. We could have written this code as: ```rust,ignore -io::stdin().read_line(&mut guess).expect("failed to read line"); +io::stdin().read_line(&mut guess).expect("Failed to read line"); ``` However, one long line is difficult to read, so it’s best to divide it, two @@ -520,7 +520,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); println!("You guessed: {}", guess); } @@ -611,7 +611,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); println!("You guessed: {}", guess); @@ -727,7 +727,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); let guess: u32 = guess.trim().parse() .expect("Please type a number!"); @@ -840,7 +840,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); let guess: u32 = guess.trim().parse() .expect("Please type a number!"); @@ -923,7 +923,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); let guess: u32 = guess.trim().parse() .expect("Please type a number!"); @@ -1032,7 +1032,7 @@ fn main() { let mut guess = String::new(); io::stdin().read_line(&mut guess) - .expect("failed to read line"); + .expect("Failed to read line"); let guess: u32 = match guess.trim().parse() { Ok(num) => num,