about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-04 10:41:48 -0700
committerbors <bors@rust-lang.org>2014-05-04 10:41:48 -0700
commitd8e5d2712cf13105e981ae25057f75daa889915d (patch)
treebef4fd6869c74afce3a4db688775f4840f1a5ce4 /src/libsyntax/parse
parent922c420fcd4dfbfc7e3bce4dd20d9b17a20b39f3 (diff)
parent74392246ff1dc6f0d9b5601eda661c7f02f18ba1 (diff)
downloadrust-d8e5d2712cf13105e981ae25057f75daa889915d.tar.gz
rust-d8e5d2712cf13105e981ae25057f75daa889915d.zip
auto merge of #13920 : Ryman/rust/inner_attr_doc, r=alexcrichton
Also updated the comment for `parse_inner_attrs_and_next` and removed extra whitespace on line endings.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/attr.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs
index ddb6ddb64b4..80ee459a62d 100644
--- a/src/libsyntax/parse/attr.rs
+++ b/src/libsyntax/parse/attr.rs
@@ -108,7 +108,8 @@ impl<'a> ParserAttr for Parser<'a> {
         };
     }
 
-    // Parse attributes that appear after the opening of an item, each
+    // Parse attributes that appear after the opening of an item. These should
+    // be preceded by an exclaimation mark, but we accept and warn about one
     // terminated by a semicolon. In addition to a vector of inner attributes,
     // this function also returns a vector that may contain the first outer
     // attribute of the next item (since we can't know whether the attribute