about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-01-29 16:37:57 -0600
committerMark Mansi <markm@cs.wisc.edu>2018-01-29 16:37:57 -0600
commit2184400be7f6b695792af7ddde14482f3e72f1e1 (patch)
tree3f2a02ad7f249fa3385092e4c3ec2af6ef054627 /src/libsyntax
parente2d558ad56d03bdc59ab2aaa28aaedf9172a0539 (diff)
downloadrust-2184400be7f6b695792af7ddde14482f3e72f1e1.tar.gz
rust-2184400be7f6b695792af7ddde14482f3e72f1e1.zip
Update comment
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/tt/macro_parser.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs
index af18801c97e..1a9849ca530 100644
--- a/src/libsyntax/ext/tt/macro_parser.rs
+++ b/src/libsyntax/ext/tt/macro_parser.rs
@@ -113,7 +113,8 @@ enum TokenTreeOrTokenTreeVec {
 }
 
 impl TokenTreeOrTokenTreeVec {
-    /// Returns the number of constituent token trees of `self`.
+    /// Returns the number of constituent top-level token trees of `self` (top-level in that it
+    /// will not recursively descend into subtrees).
     fn len(&self) -> usize {
         match *self {
             TtSeq(ref v) => v.len(),