From ca7cfbe3d0251766217e5d4e559903e655e7549b Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 18 Jan 2012 23:11:20 -0800 Subject: [PATCH] rustdoc: Add more rustdocs --- src/rustdoc/rustdoc.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/rustdoc/rustdoc.rs b/src/rustdoc/rustdoc.rs index b58850b7e3e..6406c2f1df0 100755 --- a/src/rustdoc/rustdoc.rs +++ b/src/rustdoc/rustdoc.rs @@ -11,7 +11,21 @@ fn run_passes( passes: [pass] ) -> doc::cratedoc { - #[doc = "Run a series of passes over the document"]; + #[doc( + brief = + "Run a series of passes over the document", + args( + srv = + "The AST service to provide to the passes", + doc = + "The document to transform", + passes = + "The list of passes used to transform the document" + ), + return = + "The transformed document that results from folding the \ + original through each pass" + )]; vec::foldl(doc, passes) {|doc, pass| pass(srv, doc)