Skip to content

Commit d91b2d4

Browse files
committed
Change "interface" to "trait" in rustdoc
Closes #4337
1 parent af48f30 commit d91b2d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/markdown_pass.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ pub fn header_kind(+doc: doc::ItemTag) -> ~str {
235235
~"Enum"
236236
}
237237
doc::TraitTag(_) => {
238-
~"Interface"
238+
~"Trait"
239239
}
240240
doc::ImplTag(_) => {
241241
~"Implementation"
@@ -724,7 +724,7 @@ fn write_method(ctxt: &Ctxt, +doc: doc::MethodDoc) {
724724
#[test]
725725
fn should_write_trait_header() {
726726
let markdown = test::render(~"trait i { fn a(); }");
727-
assert str::contains(markdown, ~"## Interface `i`");
727+
assert str::contains(markdown, ~"## Trait `i`");
728728
}
729729

730730
#[test]

0 commit comments

Comments
 (0)