Skip to content

Commit 3792be6

Browse files
Replace whitespaces in doctests' name with dashes
1 parent 69c1c6a commit 3792be6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/doctest.rs

+1
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ impl Collector {
853853

854854
fn generate_name(&self, line: usize, filename: &FileName) -> String {
855855
let mut item_path = self.names.join("::");
856+
item_path.retain(|c| c != ' ');
856857
if !item_path.is_empty() {
857858
item_path.push(' ');
858859
}

0 commit comments

Comments
 (0)