about summary refs log tree commit diff
path: root/src/libsyntax/parse/comments.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-03-29 18:56:36 -0700
committerbors <bors@rust-lang.org>2014-03-29 18:56:36 -0700
commitd79fbba0db84b2d27440f8feba715dffd3aeaa01 (patch)
treed5f8701b97fcf2fc596a52215ad96462c1eb981e /src/libsyntax/parse/comments.rs
parent86890b9e7c5db28ac2da5cd63d1a51d63a5e6bec (diff)
parentc356e3ba6a12c3294a9a428ef9120cff9306bf4b (diff)
downloadrust-d79fbba0db84b2d27440f8feba715dffd3aeaa01.tar.gz
rust-d79fbba0db84b2d27440f8feba715dffd3aeaa01.zip
auto merge of #13203 : Kimundi/rust/de-map-vec3, r=cmr
They required unnecessary temporaries, are replaced with iterators, and would conflict with a possible future `Iterable` trait.
Diffstat (limited to 'src/libsyntax/parse/comments.rs')
-rw-r--r--src/libsyntax/parse/comments.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs
index 53586a66513..7d337e9c078 100644
--- a/src/libsyntax/parse/comments.rs
+++ b/src/libsyntax/parse/comments.rs
@@ -104,7 +104,7 @@ pub fn strip_doc_comment_decoration(comment: &str) -> ~str {
         }
 
         if can_trim {
-            lines.map(|line| line.slice(i + 1, line.len()).to_owned())
+            lines.iter().map(|line| line.slice(i + 1, line.len()).to_owned()).collect()
         } else {
             lines
         }