Skip to content

Commit 0b7954f

Browse files
committed
rustdoc: Put bangs on the names of macros
This makes them a little easier to search for and makes it clearer that they're a macro and not an item to import. Closes #13852
1 parent 50fb77f commit 0b7954f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ pub struct Macro {
13671367
impl Clean<Item> for doctree::Macro {
13681368
fn clean(&self) -> Item {
13691369
Item {
1370-
name: Some(self.name.clean()),
1370+
name: Some(self.name.clean() + "!"),
13711371
attrs: self.attrs.clean(),
13721372
source: self.where.clean(),
13731373
visibility: ast::Public.clean(),

0 commit comments

Comments
 (0)