diff --git a/src/doc/trpl/dining-philosophers.md b/src/doc/trpl/dining-philosophers.md index 81280e8920ca9..b179c90ceb95f 100644 --- a/src/doc/trpl/dining-philosophers.md +++ b/src/doc/trpl/dining-philosophers.md @@ -73,6 +73,9 @@ a name is all we need. We choose the [`String`][string] type for the name, rather than `&str`. Generally speaking, working with a type which owns its data is easier than working with one that uses references. +[struct]: structs.html +[string]: strings.html + Let’s continue: ```rust @@ -393,7 +396,7 @@ let handles: Vec<_> = philosophers.into_iter().map(|p| { }).collect(); ``` -While this is only five lines, they’re a dense four. Let’s break it down. +While this is only five lines, they’re a dense five. Let’s break it down. ```rust,ignore let handles: Vec<_> = diff --git a/src/doc/trpl/guessing-game.md b/src/doc/trpl/guessing-game.md index e5702ed163542..baa278d7fff3e 100644 --- a/src/doc/trpl/guessing-game.md +++ b/src/doc/trpl/guessing-game.md @@ -27,7 +27,7 @@ Check out the generated `Cargo.toml`: [package] name = "guessing_game" -version = "0.0.1" +version = "0.1.0" authors = ["Your Name "] ``` @@ -46,7 +46,7 @@ Let’s try compiling what Cargo gave us: ```{bash} $ cargo build - Compiling guessing_game v0.0.1 (file:///home/you/projects/guessing_game) + Compiling guessing_game v0.1.0 (file:///home/you/projects/guessing_game) ``` Excellent! Open up your `src/main.rs` again. We’ll be writing all of @@ -58,7 +58,7 @@ Try it out: ```bash $ cargo run - Compiling guessing_game v0.0.1 (file:///home/you/projects/guessing_game) + Compiling guessing_game v0.1.0 (file:///home/you/projects/guessing_game) Running `target/debug/guessing_game` Hello, world! ``` @@ -727,7 +727,7 @@ Let’s try our program out! ```bash $ cargo run - Compiling guessing_game v0.0.1 (file:///home/you/projects/guessing_game) + Compiling guessing_game v0.1.0 (file:///home/you/projects/guessing_game) Running `target/guessing_game` Guess the number! The secret number is: 58 @@ -792,7 +792,7 @@ and quit. Observe: ```bash $ cargo run - Compiling guessing_game v0.0.1 (file:///home/you/projects/guessing_game) + Compiling guessing_game v0.1.0 (file:///home/you/projects/guessing_game) Running `target/guessing_game` Guess the number! The secret number is: 59 @@ -929,7 +929,7 @@ Now we should be good! Let’s try: ```bash $ cargo run - Compiling guessing_game v0.0.1 (file:///home/you/projects/guessing_game) + Compiling guessing_game v0.1.0 (file:///home/you/projects/guessing_game) Running `target/guessing_game` Guess the number! The secret number is: 61