about summary refs log tree commit diff
path: root/src/rustdoc/doc.rs
diff options
context:
space:
mode:
authorGareth Daniel Smith <garethdanielsmith@gmail.com>2012-07-04 22:53:12 +0100
committerBrian Anderson <banderson@mozilla.com>2012-07-04 19:18:13 -0700
commitbe0141666dd12316034499db12ee9fcf9ba648dd (patch)
tree7d4c985a73e9a85de0e6c1bf2beeed44ebbd0102 /src/rustdoc/doc.rs
parentbfa43ca3011bd1296cb1797ad3ea1c5dc4056749 (diff)
downloadrust-be0141666dd12316034499db12ee9fcf9ba648dd.tar.gz
rust-be0141666dd12316034499db12ee9fcf9ba648dd.zip
convert doc-attributes to doc-comments using ./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
Diffstat (limited to 'src/rustdoc/doc.rs')
-rw-r--r--src/rustdoc/doc.rs34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/rustdoc/doc.rs b/src/rustdoc/doc.rs
index cd83b70bbea..744f62d0eb3 100644
--- a/src/rustdoc/doc.rs
+++ b/src/rustdoc/doc.rs
@@ -1,4 +1,4 @@
-#[doc = "The document model"];
+//! The document model
 
 type ast_id = int;
 
@@ -11,10 +11,10 @@ enum page {
     itempage(itemtag)
 }
 
-#[doc = "
-Most rustdocs can be parsed into 'sections' according to their markdown
-headers
-"]
+/**
+ * Most rustdocs can be parsed into 'sections' according to their markdown
+ * headers
+ */
 type section = {
     header: str,
     body: str
@@ -107,18 +107,16 @@ type index = {
     entries: ~[index_entry]
 };
 
-#[doc = "
-
-A single entry in an index
-
-Fields:
-
-* kind - The type of thing being indexed, e.g. 'Module'
-* name - The name of the thing
-* brief - The brief description
-* link - A format-specific string representing the link target
-
-"]
+/**
+ * A single entry in an index
+ *
+ * Fields:
+ *
+ * * kind - The type of thing being indexed, e.g. 'Module'
+ * * name - The name of the thing
+ * * brief - The brief description
+ * * link - A format-specific string representing the link target
+ */
 type index_entry = {
     kind: str,
     name: str,
@@ -141,7 +139,7 @@ impl util for doc {
     }
 }
 
-#[doc = "Some helper methods on moddoc, mostly for testing"]
+/// Some helper methods on moddoc, mostly for testing
 impl util for moddoc {
 
     fn mods() -> ~[moddoc] {