Skip to content

Commit 3bb184c

Browse files
committed
Macro docs put the implementation after the description
May be better to also put the traits and methods before ... Closes rust-lang#17616
1 parent e543878 commit 3bb184c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustdoc/html/render.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,9 +2174,9 @@ impl<'a> fmt::Show for Source<'a> {
21742174

21752175
fn item_macro(w: &mut fmt::Formatter, it: &clean::Item,
21762176
t: &clean::Macro) -> fmt::Result {
2177-
try!(w.write(highlight::highlight(t.source.as_slice(), Some("macro"),
2178-
None).as_bytes()));
2179-
document(w, it)
2177+
try!(document(w, it))
2178+
w.write(highlight::highlight(t.source.as_slice(), Some("macro"),
2179+
None).as_bytes())
21802180
}
21812181

21822182
fn item_primitive(w: &mut fmt::Formatter,

0 commit comments

Comments
 (0)