summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2014-07-27 15:23:01 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2014-07-29 15:51:03 -0700
commita46463d17920b99411337f20fc0e7edc72230c0b (patch)
treeba54570e4101c3e3bec525c98aa1236801861d0b /src/libsyntax
parent4d472ff1be571cc20d89ddc97d22c9903b6c3aa8 (diff)
downloadrust-a46463d17920b99411337f20fc0e7edc72230c0b.tar.gz
rust-a46463d17920b99411337f20fc0e7edc72230c0b.zip
syntax: promote a comment on PatEnum into a docstring
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index f05d17569f6..4a59ada441f 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -334,8 +334,10 @@ pub enum Pat_ {
     /// records this pattern's NodeId in an auxiliary
     /// set (of "PatIdents that refer to nullary enums")
     PatIdent(BindingMode, SpannedIdent, Option<Gc<Pat>>),
-    PatEnum(Path, Option<Vec<Gc<Pat>>>), /* "none" means a * pattern where
-                                     * we don't bind the fields to names */
+
+    /// "None" means a * pattern where we don't bind the fields to names.
+    PatEnum(Path, Option<Vec<Gc<Pat>>>),
+
     PatStruct(Path, Vec<FieldPat>, bool),
     PatTup(Vec<Gc<Pat>>),
     PatBox(Gc<Pat>),