Skip to content

Commit

Permalink
rustdoc: Put field instantiation in declaration order.
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Aug 4, 2014
1 parent 08d44f5 commit 2b0a154
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,9 @@ impl<'a> SourceCollector<'a> {
let desc = format!("Source to the Rust file `{}`.", filename);
let page = layout::Page {
title: title.as_slice(),
description: desc.as_slice(),
ty: "source",
root_path: root_path.as_slice(),
description: desc.as_slice(),
};
try!(layout::render(&mut w as &mut Writer, &self.cx.layout,
&page, &(""), &Source(contents)));
Expand Down Expand Up @@ -1078,9 +1078,9 @@ impl Context {
this.layout.krate);
let page = layout::Page {
ty: "mod",
description: desc.as_slice(),
root_path: this.root_path.as_slice(),
title: title.as_slice(),
description: desc.as_slice(),
};
let html_dst = &this.dst.join("stability.html");
let mut html_out = BufferedWriter::new(try!(File::create(html_dst)));
Expand Down Expand Up @@ -1139,9 +1139,9 @@ impl Context {
};
let page = layout::Page {
ty: tyname,
description: desc.as_slice(),
root_path: cx.root_path.as_slice(),
title: title.as_slice(),
description: desc.as_slice(),
};

markdown::reset_headers();
Expand Down

0 comments on commit 2b0a154

Please sign in to comment.