Skip to content

Commit 11b1ff1

Browse files
committed
book: Fix a hyperlink to CONFIGS.md
Right now rustdoc replaces the string ".md)" with ".html)" to fix links between markdown files, so use a different syntax that doesn't get caught in the crossfire. Closes #22900
1 parent ed276ca commit 11b1ff1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/doc/trpl/hello-world.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ This line does all of the work in our little program. There are a number of
8989
details that are important here. The first is that it's indented with four
9090
spaces, not tabs. Please configure your editor of choice to insert four spaces
9191
with the tab key. We provide some [sample configurations for various
92-
editors](https://github.com/rust-lang/rust/tree/master/src/etc/CONFIGS.md).
92+
editors][configs].
93+
94+
[configs]: https://github.com/rust-lang/rust/tree/master/src/etc/CONFIGS.md
9395

9496
The second point is the `println!()` part. This is calling a Rust *macro*,
9597
which is how metaprogramming is done in Rust. If it were a function instead, it

src/rustbook/build.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ fn render(book: &Book, tgt: &Path) -> CliResult<()> {
8989
} else {
9090
src = PathBuf::from(&env::args().nth(2).unwrap());
9191
}
92-
// preprocess the markdown, rerouting markdown references to html references
92+
// preprocess the markdown, rerouting markdown references to html
93+
// references
9394
let mut markdown_data = String::new();
9495
try!(File::open(&src.join(&item.path)).and_then(|mut f| {
9596
f.read_to_string(&mut markdown_data)

0 commit comments

Comments
 (0)