Skip to content

Commit

Permalink
Rollup merge of rust-lang#64072 - limira:patch-1, r=ollie27
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
Centril committed Sep 10, 2019
2 parents 659ef20 + 7fdcbce commit 5553171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub fn render(
edition: Edition
) -> i32 {
let mut output = options.output;
output.push(input.file_stem().unwrap());
output.push(input.file_name().unwrap());
output.set_extension("html");

let mut css = String::new();
Expand Down

0 comments on commit 5553171

Please sign in to comment.