Skip to content

Commit 2b0a154

Browse files
committed
rustdoc: Put field instantiation in declaration order.
cc rust-lang#12466
1 parent 08d44f5 commit 2b0a154

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustdoc/html/render.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -745,9 +745,9 @@ impl<'a> SourceCollector<'a> {
745745
let desc = format!("Source to the Rust file `{}`.", filename);
746746
let page = layout::Page {
747747
title: title.as_slice(),
748-
description: desc.as_slice(),
749748
ty: "source",
750749
root_path: root_path.as_slice(),
750+
description: desc.as_slice(),
751751
};
752752
try!(layout::render(&mut w as &mut Writer, &self.cx.layout,
753753
&page, &(""), &Source(contents)));
@@ -1078,9 +1078,9 @@ impl Context {
10781078
this.layout.krate);
10791079
let page = layout::Page {
10801080
ty: "mod",
1081-
description: desc.as_slice(),
10821081
root_path: this.root_path.as_slice(),
10831082
title: title.as_slice(),
1083+
description: desc.as_slice(),
10841084
};
10851085
let html_dst = &this.dst.join("stability.html");
10861086
let mut html_out = BufferedWriter::new(try!(File::create(html_dst)));
@@ -1139,9 +1139,9 @@ impl Context {
11391139
};
11401140
let page = layout::Page {
11411141
ty: tyname,
1142-
description: desc.as_slice(),
11431142
root_path: cx.root_path.as_slice(),
11441143
title: title.as_slice(),
1144+
description: desc.as_slice(),
11451145
};
11461146

11471147
markdown::reset_headers();

0 commit comments

Comments
 (0)