From 0b7954fa809690037bcb80f44d3383329bce48ad Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 2 May 2014 16:25:45 -0700 Subject: [PATCH] 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 --- src/librustdoc/clean.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/clean.rs b/src/librustdoc/clean.rs index 9fa1c57f991..1cb994e1662 100644 --- a/src/librustdoc/clean.rs +++ b/src/librustdoc/clean.rs @@ -1367,7 +1367,7 @@ pub struct Macro { impl Clean for doctree::Macro { fn clean(&self) -> Item { Item { - name: Some(self.name.clean()), + name: Some(self.name.clean() + "!"), attrs: self.attrs.clean(), source: self.where.clean(), visibility: ast::Public.clean(),