rustdoc: Rename parse_compound_fndoc to parse_fn
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
export parse_compound_fndoc;
|
export parse_fn;
|
||||||
|
|
||||||
#[doc(
|
#[doc(
|
||||||
brief = "Parses function docs from a complex #[doc] attribute.",
|
brief = "Parses function docs from a complex #[doc] attribute.",
|
||||||
@@ -12,7 +12,7 @@ export parse_compound_fndoc;
|
|||||||
args(items = "Doc attribute contents"),
|
args(items = "Doc attribute contents"),
|
||||||
return = "Parsed function docs."
|
return = "Parsed function docs."
|
||||||
)]
|
)]
|
||||||
fn parse_compound_fndoc(items: [@ast::meta_item]) -> doc::fndoc {
|
fn parse_fn(items: [@ast::meta_item]) -> doc::fndoc {
|
||||||
let brief = none;
|
let brief = none;
|
||||||
let desc = none;
|
let desc = none;
|
||||||
let return = none;
|
let return = none;
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ fn doc_item(rd: rustdoc, item: @ast::item) {
|
|||||||
}
|
}
|
||||||
ast::meta_list("doc", docs) {
|
ast::meta_list("doc", docs) {
|
||||||
_fndoc = some(
|
_fndoc = some(
|
||||||
attr_parser::parse_compound_fndoc(docs));
|
attr_parser::parse_fn(docs));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user