about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/doc/trpl/hello-world.md4
-rw-r--r--src/rustbook/build.rs3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/doc/trpl/hello-world.md b/src/doc/trpl/hello-world.md
index f726f8627c9..b077d3d5ce6 100644
--- a/src/doc/trpl/hello-world.md
+++ b/src/doc/trpl/hello-world.md
@@ -89,7 +89,9 @@ This line does all of the work in our little program. There are a number of
 details that are important here. The first is that it's indented with four
 spaces, not tabs. Please configure your editor of choice to insert four spaces
 with the tab key. We provide some [sample configurations for various
-editors](https://github.com/rust-lang/rust/tree/master/src/etc/CONFIGS.md).
+editors][configs].
+
+[configs]: https://github.com/rust-lang/rust/tree/master/src/etc/CONFIGS.md
 
 The second point is the `println!()` part. This is calling a Rust *macro*,
 which is how metaprogramming is done in Rust. If it were a function instead, it
diff --git a/src/rustbook/build.rs b/src/rustbook/build.rs
index 62926c28d71..f96704ee128 100644
--- a/src/rustbook/build.rs
+++ b/src/rustbook/build.rs
@@ -89,7 +89,8 @@ fn render(book: &Book, tgt: &Path) -> CliResult<()> {
         } else {
             src = PathBuf::from(&env::args().nth(2).unwrap());
         }
-        // preprocess the markdown, rerouting markdown references to html references
+        // preprocess the markdown, rerouting markdown references to html
+        // references
         let mut markdown_data = String::new();
         try!(File::open(&src.join(&item.path)).and_then(|mut f| {
             f.read_to_string(&mut markdown_data)