diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-07-03 16:11:00 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-07-03 16:11:00 -0700 |
| commit | debb7e4641af2ea71cf8733b3f071d614803dcbd (patch) | |
| tree | 3c087869d79d340300a1383b95b994b2fce43517 /src/rustdoc/markdown_pass.rs | |
| parent | 7259195caff1fdcce6266e6ecf51c0fd614e041f (diff) | |
| download | rust-debb7e4641af2ea71cf8733b3f071d614803dcbd.tar.gz rust-debb7e4641af2ea71cf8733b3f071d614803dcbd.zip | |
Switch 'native' to 'extern' (or 'foreign' in some descriptions)
Diffstat (limited to 'src/rustdoc/markdown_pass.rs')
| -rw-r--r-- | src/rustdoc/markdown_pass.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rustdoc/markdown_pass.rs b/src/rustdoc/markdown_pass.rs index a616897f3b2..cb3da77362d 100644 --- a/src/rustdoc/markdown_pass.rs +++ b/src/rustdoc/markdown_pass.rs @@ -187,7 +187,7 @@ fn header_kind(doc: doc::itemtag) -> str { } } doc::nmodtag(_) { - "Native module" + "Foreign module" } doc::fntag(_) { "Function" @@ -414,7 +414,7 @@ fn should_not_write_index_if_no_entries() { #[test] fn should_write_index_for_foreign_mods() { - let markdown = test::render("native mod a { fn a(); }"); + let markdown = test::render("extern mod a { fn a(); }"); assert str::contains( markdown, "\n\n* [Function `a`](#function-a)\n\n" @@ -435,20 +435,20 @@ fn write_nmod(ctxt: ctxt, doc: doc::nmoddoc) { #[test] fn should_write_foreign_mods() { - let markdown = test::render("#[doc = \"test\"] native mod a { }"); - assert str::contains(markdown, "Native module `a`"); + let markdown = test::render("#[doc = \"test\"] extern mod a { }"); + assert str::contains(markdown, "Foreign module `a`"); assert str::contains(markdown, "test"); } #[test] fn should_write_foreign_fns() { - let markdown = test::render("native mod a { #[doc = \"test\"] fn a(); }"); + let markdown = test::render("extern mod a { #[doc = \"test\"] fn a(); }"); assert str::contains(markdown, "test"); } #[test] fn should_write_foreign_fn_headers() { - let markdown = test::render("native mod a { #[doc = \"test\"] fn a(); }"); + let markdown = test::render("extern mod a { #[doc = \"test\"] fn a(); }"); assert str::contains(markdown, "## Function `a`"); } |
