Skip to content

Commit

Permalink
Replace whitespaces in doctests' name with dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Oct 1, 2021
1 parent 69c1c6a commit 3792be6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustdoc/doctest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ impl Collector {

fn generate_name(&self, line: usize, filename: &FileName) -> String {
let mut item_path = self.names.join("::");
item_path.retain(|c| c != ' ');
if !item_path.is_empty() {
item_path.push(' ');
}
Expand Down

0 comments on commit 3792be6

Please sign in to comment.