1
Fork 0

rustdoc: Put fn docs inside fn bodies

This commit is contained in:
Brian Anderson 2012-01-18 14:06:22 -08:00
parent 9191911499
commit 810af2dada
3 changed files with 11 additions and 5 deletions

View file

@ -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)
}