mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Change Freeze to Static
This commit is contained in:
committed by
Corey Richardson
parent
ffd80aa276
commit
19d0eb9060
@@ -150,8 +150,8 @@ pub fn header_kind(doc: doc::ItemTag) -> ~str {
|
||||
doc::FnTag(_) => {
|
||||
~"Function"
|
||||
}
|
||||
doc::ConstTag(_) => {
|
||||
~"Freeze"
|
||||
doc::StaticTag(_) => {
|
||||
~"Static"
|
||||
}
|
||||
doc::EnumTag(_) => {
|
||||
~"Enum"
|
||||
@@ -777,7 +777,7 @@ fn should_leave_blank_line_between_fn_header_and_sig() {
|
||||
#[test]
|
||||
fn should_write_const_header() {
|
||||
let markdown = render(~"static a: bool = true;");
|
||||
assert!(markdown.contains("## Freeze `a`\n\n"));
|
||||
assert!(markdown.contains("## Static `a`\n\n"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user