rustdoc: Put fn docs inside fn bodies
This commit is contained in:
parent
9191911499
commit
810af2dada
3 changed files with 11 additions and 5 deletions
|
@ -4,11 +4,13 @@ import rustc::syntax::ast;
|
|||
|
||||
export from_srv, extract;
|
||||
|
||||
#[doc = "Use the AST service to create a document tree"]
|
||||
fn from_srv(
|
||||
srv: astsrv::srv,
|
||||
default_name: str
|
||||
) -> doc::cratedoc {
|
||||
|
||||
#[doc = "Use the AST service to create a document tree"];
|
||||
|
||||
astsrv::exec(srv) {|ctxt|
|
||||
extract(ctxt.ast, default_name)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue