Skip to content

Commit ec06633

Browse files
authored
Rollup merge of rust-lang#64072 - limira:patch-1, r=ollie27
Replace file_stem by file_name in rustdoc markdown Before this PR, a file name like `some.file.md` will be output to a file named `some.html` with is not correct because the expected output file must be `some.file.html`
2 parents e757d33 + 7fdcbce commit ec06633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/markdown.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub fn render(
4343
edition: Edition
4444
) -> i32 {
4545
let mut output = options.output;
46-
output.push(input.file_stem().unwrap());
46+
output.push(input.file_name().unwrap());
4747
output.set_extension("html");
4848

4949
let mut css = String::new();

0 commit comments

Comments
 (0)