Skip to content

Commit

Permalink
librustdoc: rename vec::each(var) to var.each
Browse files Browse the repository at this point in the history
  • Loading branch information
recrack committed May 9, 2013
1 parent 9a292b3 commit 472d9f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustdoc/markdown_pass.rs
Expand Up @@ -276,7 +276,7 @@ fn write_desc(
}

fn write_sections(ctxt: &Ctxt, sections: &[doc::Section]) {
for vec::each(sections) |section| {
for sections.each |section| {
write_section(ctxt, copy *section);
}
}
Expand Down Expand Up @@ -439,7 +439,7 @@ fn write_variants(

write_header_(ctxt, H4, ~"Variants");

for vec::each(docs) |variant| {
for docs.each |variant| {
write_variant(ctxt, copy *variant);
}

Expand All @@ -465,7 +465,7 @@ fn write_trait(ctxt: &Ctxt, doc: doc::TraitDoc) {
}

fn write_methods(ctxt: &Ctxt, docs: &[doc::MethodDoc]) {
for vec::each(docs) |doc| {
for docs.each |doc| {
write_method(ctxt, copy *doc);
}
}
Expand Down

0 comments on commit 472d9f3

Please sign in to comment.