提交 472d9f33 编写于 作者: Y Youngmin Yoo

librustdoc: rename vec::each(var) to var.each

上级 9a292b3d
......@@ -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);
}
}
......@@ -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);
}
......@@ -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);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册