From 9cf271fe96b474d514b1052935db70c4056cf076 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 18 Sep 2012 21:41:37 -0700 Subject: De-mode vec::each() and many of the str iteration routines Note that the method foo.each() is not de-moded, nor the other vec routines. --- src/rustdoc/markdown_pass.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/rustdoc') diff --git a/src/rustdoc/markdown_pass.rs b/src/rustdoc/markdown_pass.rs index 5b3df668627..db79c07e712 100644 --- a/src/rustdoc/markdown_pass.rs +++ b/src/rustdoc/markdown_pass.rs @@ -314,8 +314,8 @@ fn write_desc( } fn write_sections(ctxt: Ctxt, sections: ~[doc::Section]) { - do vec::iter(sections) |section| { - write_section(ctxt, section); + for vec::each(sections) |section| { + write_section(ctxt, *section); } } @@ -609,7 +609,9 @@ fn write_variants( write_header_(ctxt, H4, ~"Variants"); - vec::iter(docs, |variant| write_variant(ctxt, variant) ); + for vec::each(docs) |variant| { + write_variant(ctxt, *variant); + } ctxt.w.write_line(~""); } @@ -666,7 +668,9 @@ fn write_trait(ctxt: Ctxt, doc: doc::TraitDoc) { } fn write_methods(ctxt: Ctxt, docs: ~[doc::MethodDoc]) { - do vec::iter(docs) |doc| { write_method(ctxt, doc) } + for vec::each(docs) |doc| { + write_method(ctxt, *doc); + } } fn write_method(ctxt: Ctxt, doc: doc::MethodDoc) { -- cgit 1.4.1-3-g733a5