diff options
| author | Sangeun Kim <sammy.kim@samsung.com> | 2013-08-07 16:47:21 +0900 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-08-07 22:41:13 -0400 |
| commit | a9b7bec2e7f005431c7424a59095ccda33484bb1 (patch) | |
| tree | d999af47fde328c3899bbbc1870bf1e33c137103 /src/librustdoc/extract.rs | |
| parent | 19d0eb90600f1b643025b99b8a2ea204e4d08034 (diff) | |
| download | rust-a9b7bec2e7f005431c7424a59095ccda33484bb1.tar.gz rust-a9b7bec2e7f005431c7424a59095ccda33484bb1.zip | |
Change const to static
Diffstat (limited to 'src/librustdoc/extract.rs')
| -rw-r--r-- | src/librustdoc/extract.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/librustdoc/extract.rs b/src/librustdoc/extract.rs index f849cfade9b..2cab62296a4 100644 --- a/src/librustdoc/extract.rs +++ b/src/librustdoc/extract.rs @@ -101,8 +101,8 @@ fn moddoc_from_mod( )) } ast::item_static(*) => { - Some(doc::ConstTag( - constdoc_from_const(ItemDoc) + Some(doc::StaticTag( + staticdoc_from_static(ItemDoc) )) } ast::item_enum(enum_definition, _) => { @@ -165,7 +165,7 @@ fn fndoc_from_fn(itemdoc: doc::ItemDoc) -> doc::FnDoc { } } -fn constdoc_from_const(itemdoc: doc::ItemDoc) -> doc::ConstDoc { +fn staticdoc_from_static(itemdoc: doc::ItemDoc) -> doc::StaticDoc { doc::SimpleItemDoc { item: itemdoc, sig: None @@ -356,10 +356,10 @@ mod test { } #[test] - fn should_extract_const_name_and_id() { + fn should_extract_static_name_and_id() { let doc = mk_doc(@"static a: int = 0;"); - assert!(doc.cratemod().consts()[0].id() != 0); - assert!(doc.cratemod().consts()[0].name_() == ~"a"); + assert!(doc.cratemod().statics()[0].id() != 0); + assert!(doc.cratemod().statics()[0].name_() == ~"a"); } #[test] |
