Skip to content

Commit 0a00b32

Browse files
committed
Get rid of some spurious /~s in rustdoc. Oops.
1 parent ae06546 commit 0a00b32

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/rustdoc/markdown_pass.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,10 @@ fn write_index(ctxt: ctxt, index: doc::index) {
381381
let header = header_text_(entry.kind, entry.name);
382382
let id = entry.link;
383383
if option::is_some(entry.brief) {
384-
ctxt.w.write_line(#fmt("* [%s]/~(%s) - %s",
384+
ctxt.w.write_line(#fmt("* [%s](%s) - %s",
385385
header, id, option::get(entry.brief)));
386386
} else {
387-
ctxt.w.write_line(#fmt("* [%s]/~(%s)", header, id));
387+
ctxt.w.write_line(#fmt("* [%s](%s)", header, id));
388388
}
389389
}
390390
ctxt.w.write_line("");
@@ -395,8 +395,8 @@ fn should_write_index() {
395395
let markdown = test::render("mod a { } mod b { }");
396396
assert str::contains(
397397
markdown,
398-
"\n\n* [Module `a`]/~(#module-a)\n\
399-
* [Module `b`]/~(#module-b)\n\n"
398+
"\n\n* [Module `a`](#module-a)\n\
399+
* [Module `b`](#module-b)\n\n"
400400
);
401401
}
402402

@@ -417,7 +417,7 @@ fn should_write_index_for_foreign_mods() {
417417
let markdown = test::render("native mod a { fn a(); }");
418418
assert str::contains(
419419
markdown,
420-
"\n\n* [Function `a`]/~(#function-a)\n\n"
420+
"\n\n* [Function `a`](#function-a)\n\n"
421421
);
422422
}
423423

0 commit comments

Comments
 (0)