@@ -255,7 +255,7 @@ and other whitespace. This helps you split up long lines. We _could_ have
255
255
done:
256
256
257
257
``` rust,ignore
258
- io::stdin().read_line(&mut guess).expect("failed to read line");
258
+ io::stdin().read_line(&mut guess).expect("Failed to read line");
259
259
```
260
260
261
261
But that gets hard to read. So we’ve split it up, two lines for two method
@@ -473,7 +473,7 @@ fn main() {
473
473
let mut guess = String::new();
474
474
475
475
io::stdin().read_line(&mut guess)
476
- .expect("failed to read line");
476
+ .expect("Failed to read line");
477
477
478
478
println!("You guessed: {}", guess);
479
479
}
@@ -563,7 +563,7 @@ fn main() {
563
563
let mut guess = String::new();
564
564
565
565
io::stdin().read_line(&mut guess)
566
- .expect("failed to read line");
566
+ .expect("Failed to read line");
567
567
568
568
println!("You guessed: {}", guess);
569
569
@@ -678,7 +678,7 @@ fn main() {
678
678
let mut guess = String::new ();
679
679
680
680
io::stdin ().read_line(& mut guess)
681
- .expect(" failed to read line" );
681
+ .expect(" Failed to read line" );
682
682
683
683
let guess: u32 = guess.trim().parse ()
684
684
.expect(" Please type a number!" );
@@ -780,7 +780,7 @@ fn main() {
780
780
let mut guess = String::new ();
781
781
782
782
io::stdin ().read_line(& mut guess)
783
- .expect(" failed to read line" );
783
+ .expect(" Failed to read line" );
784
784
785
785
let guess: u32 = guess.trim().parse ()
786
786
.expect(" Please type a number!" );
@@ -847,7 +847,7 @@ fn main() {
847
847
let mut guess = String::new ();
848
848
849
849
io::stdin ().read_line(& mut guess)
850
- .expect(" failed to read line" );
850
+ .expect(" Failed to read line" );
851
851
852
852
let guess: u32 = guess.trim().parse ()
853
853
.expect(" Please type a number!" );
@@ -892,7 +892,7 @@ fn main() {
892
892
let mut guess = String::new ();
893
893
894
894
io::stdin ().read_line(& mut guess)
895
- .expect(" failed to read line" );
895
+ .expect(" Failed to read line" );
896
896
897
897
let guess: u32 = match guess.trim().parse () {
898
898
Ok(num) => num,
@@ -981,7 +981,7 @@ fn main() {
981
981
let mut guess = String::new();
982
982
983
983
io::stdin().read_line(&mut guess)
984
- .expect("failed to read line");
984
+ .expect("Failed to read line");
985
985
986
986
let guess: u32 = match guess.trim().parse() {
987
987
Ok(num) => num,
0 commit comments