提交 b056e98a 编写于 作者: B Brian Anderson

rustdoc: Fix spelling in tests

上级 acc3ec7d
......@@ -132,14 +132,14 @@ fn parse_hidden(attrs: ~[ast::attribute]) -> bool {
}
#[test]
fn shoulde_parse_hidden_attribute() {
fn should_parse_hidden_attribute() {
let source = ~"#[doc(hidden)]";
let attrs = test::parse_attributes(source);
assert parse_hidden(attrs) == true;
}
#[test]
fn shoulde_not_parse_non_hidden_attribute() {
fn should_not_parse_non_hidden_attribute() {
let source = ~"#[doc = \"\"]";
let attrs = test::parse_attributes(source);
assert parse_hidden(attrs) == false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册