about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2014-07-02 23:17:10 -0700
committerJohn Clements <clements@racket-lang.org>2014-07-04 13:20:13 -0700
commit35175f015ff878d49e3b5562fe3a7addcef25cfc (patch)
treef0b1c0847451826437242fbbba238bfdf1081386 /src/libsyntax/ast.rs
parentaa91ef0cf814a35037bc562fa37c51549fcf2984 (diff)
downloadrust-35175f015ff878d49e3b5562fe3a7addcef25cfc.tar.gz
rust-35175f015ff878d49e3b5562fe3a7addcef25cfc.zip
comments only
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index e2a74ba4dfc..ce1302c8db8 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -190,6 +190,8 @@ pub struct TyParam {
     pub span: Span
 }
 
+/// Represents lifetimes and type parameters attached to a declaration
+/// of a function, enum, trait, etc.
 #[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash)]
 pub struct Generics {
     pub lifetimes: Vec<Lifetime>,
@@ -288,7 +290,7 @@ pub enum Pat_ {
     PatWild,
     PatWildMulti,
     // A PatIdent may either be a new bound variable,
-    // or a nullary enum (in which case the second field
+    // or a nullary enum (in which case the third field
     // is None).
     // In the nullary enum case, the parser can't determine
     // which it is. The resolver determines this, and