Skip to content

Commit 472d9f3

Browse files
committed
librustdoc: rename vec::each(var) to var.each
1 parent 9a292b3 commit 472d9f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustdoc/markdown_pass.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ fn write_desc(
276276
}
277277

278278
fn write_sections(ctxt: &Ctxt, sections: &[doc::Section]) {
279-
for vec::each(sections) |section| {
279+
for sections.each |section| {
280280
write_section(ctxt, copy *section);
281281
}
282282
}
@@ -439,7 +439,7 @@ fn write_variants(
439439

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

442-
for vec::each(docs) |variant| {
442+
for docs.each |variant| {
443443
write_variant(ctxt, copy *variant);
444444
}
445445

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

467467
fn write_methods(ctxt: &Ctxt, docs: &[doc::MethodDoc]) {
468-
for vec::each(docs) |doc| {
468+
for docs.each |doc| {
469469
write_method(ctxt, copy *doc);
470470
}
471471
}

0 commit comments

Comments
 (0)