diff options
| author | Michael Sullivan <sully@msully.net> | 2012-06-29 16:26:56 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2012-06-29 17:41:45 -0700 |
| commit | 98e161f00e8850b0f5c6a3a9f1b22b222c2355b7 (patch) | |
| tree | 4e026fed97dda63a5394b86235a27eeb1015b094 /src/rustdoc/markdown_pass.rs | |
| parent | e6baf44f1982d1a5e49cc4a0b5eaeb857418e35e (diff) | |
| download | rust-98e161f00e8850b0f5c6a3a9f1b22b222c2355b7.tar.gz rust-98e161f00e8850b0f5c6a3a9f1b22b222c2355b7.zip | |
Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.
Diffstat (limited to 'src/rustdoc/markdown_pass.rs')
| -rw-r--r-- | src/rustdoc/markdown_pass.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/rustdoc/markdown_pass.rs b/src/rustdoc/markdown_pass.rs index 05da858ee3a..a73fd2d478d 100644 --- a/src/rustdoc/markdown_pass.rs +++ b/src/rustdoc/markdown_pass.rs @@ -211,7 +211,7 @@ fn header_kind(doc: doc::itemtag) -> str { } fn header_name(doc: doc::itemtag) -> str { - let fullpath = str::connect(doc.path() + [doc.name()]/~, "::"); + let fullpath = str::connect(doc.path() + ~[doc.name()], "::"); alt doc { doc::modtag(_) if doc.id() != syntax::ast::crate_node_id { fullpath @@ -275,7 +275,7 @@ fn should_write_full_path_to_mod() { fn write_common( ctxt: ctxt, desc: option<str>, - sections: [doc::section]/~ + sections: ~[doc::section] ) { write_desc(ctxt, desc); write_sections(ctxt, sections); @@ -294,7 +294,7 @@ fn write_desc( } } -fn write_sections(ctxt: ctxt, sections: [doc::section]/~) { +fn write_sections(ctxt: ctxt, sections: ~[doc::section]) { vec::iter(sections) {|section| write_section(ctxt, section); } @@ -468,7 +468,7 @@ fn write_fnlike( ctxt: ctxt, sig: option<str>, desc: option<str>, - sections: [doc::section]/~ + sections: ~[doc::section] ) { write_sig(ctxt, sig); write_common(ctxt, desc, sections); @@ -512,18 +512,18 @@ fn should_insert_blank_line_after_fn_signature() { fn should_correctly_indent_fn_signature() { let doc = test::create_doc("fn a() { }"); let doc = { - pages: [ + pages: ~[ doc::cratepage({ topmod: { - items: [doc::fntag({ + items: ~[doc::fntag({ sig: some("line 1\nline 2") with doc.cratemod().fns()[0] - })]/~ + })] with doc.cratemod() } with doc.cratedoc() }) - ]/~ + ] }; let markdown = test::write_markdown_str(doc); assert str::contains(markdown, " line 1\n line 2"); @@ -580,7 +580,7 @@ fn should_write_enum_description() { fn write_variants( ctxt: ctxt, - docs: [doc::variantdoc]/~ + docs: ~[doc::variantdoc] ) { if vec::is_empty(docs) { ret; @@ -644,7 +644,7 @@ fn write_iface(ctxt: ctxt, doc: doc::ifacedoc) { write_methods(ctxt, doc.methods); } -fn write_methods(ctxt: ctxt, docs: [doc::methoddoc]/~) { +fn write_methods(ctxt: ctxt, docs: ~[doc::methoddoc]) { vec::iter(docs) {|doc| write_method(ctxt, doc) } } |
