about summary refs log tree commit diff
path: root/src/libsyntax/parse/comments.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-09-18 22:18:38 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-09-20 22:49:03 -0700
commit4fd061c426902b0904c65e64a3780b21f9ab3afb (patch)
treefc6835eb507e916e8184dc821b44e01e5261ccdf /src/libsyntax/parse/comments.rs
parenta95604fcaacf9cbad5f57b8c08e1b3e871462e9c (diff)
downloadrust-4fd061c426902b0904c65e64a3780b21f9ab3afb.tar.gz
rust-4fd061c426902b0904c65e64a3780b21f9ab3afb.zip
Implement a web backend for rustdoc_ng
This large commit implements and `html` output option for rustdoc_ng. The
executable has been altered to be invoked as "rustdoc_ng html <crate>" and
it will dump everything into the local "doc" directory. JSON can still be
generated by changing 'html' to 'json'.

This also fixes a number of bugs in rustdoc_ng relating to comment stripping,
along with some other various issues that I found along the way.

The `make doc` command has been altered to generate the new documentation into
the `doc/ng/$(CRATE)` directories.
Diffstat (limited to 'src/libsyntax/parse/comments.rs')
-rw-r--r--src/libsyntax/parse/comments.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs
index 7ca6224c31d..f13bd6d9123 100644
--- a/src/libsyntax/parse/comments.rs
+++ b/src/libsyntax/parse/comments.rs
@@ -107,9 +107,7 @@ pub fn strip_doc_comment_decoration(comment: &str) -> ~str {
     }
 
     if comment.starts_with("//") {
-        // FIXME #5475:
-        // return comment.slice(3u, comment.len()).to_owned();
-        let r = comment.slice(3u, comment.len()); return r.to_owned();
+        return comment.slice(3u, comment.len()).to_owned();
     }
 
     if comment.starts_with("/*") {