summary refs log tree commit diff
path: root/src/libsyntax/parse/attr.rs
diff options
context:
space:
mode:
authorKevin Butler <haqkrs@gmail.com>2014-05-03 21:24:06 +0100
committerKevin Butler <haqkrs@gmail.com>2014-05-03 21:24:06 +0100
commit74392246ff1dc6f0d9b5601eda661c7f02f18ba1 (patch)
treed728b8a59833200579ec67d932d442eac27d909c /src/libsyntax/parse/attr.rs
parent0c691df8acaf10aa3721476e5d7fafcee11b0aaa (diff)
downloadrust-74392246ff1dc6f0d9b5601eda661c7f02f18ba1.tar.gz
rust-74392246ff1dc6f0d9b5601eda661c7f02f18ba1.zip
Remove comment about semicolons for inner attributes from docs and adjust comments.
Diffstat (limited to 'src/libsyntax/parse/attr.rs')
-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