Skip to content

Commit 35175f0

Browse files
committed
comments only
1 parent aa91ef0 commit 35175f0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/libsyntax/ast.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ pub struct TyParam {
190190
pub span: Span
191191
}
192192

193+
/// Represents lifetimes and type parameters attached to a declaration
194+
/// of a function, enum, trait, etc.
193195
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash)]
194196
pub struct Generics {
195197
pub lifetimes: Vec<Lifetime>,
@@ -288,7 +290,7 @@ pub enum Pat_ {
288290
PatWild,
289291
PatWildMulti,
290292
// A PatIdent may either be a new bound variable,
291-
// or a nullary enum (in which case the second field
293+
// or a nullary enum (in which case the third field
292294
// is None).
293295
// In the nullary enum case, the parser can't determine
294296
// which it is. The resolver determines this, and

src/libsyntax/ext/expand.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,9 @@ fn expand_pat(p: Gc<ast::Pat>, fld: &mut MacroExpander) -> Gc<ast::Pat> {
841841
}
842842
}
843843

844-
// a tree-folder that applies every rename in its (mutable) list
845-
// to every identifier, including both bindings and varrefs
846-
// (and lots of things that will turn out to be neither)
844+
/// A tree-folder that applies every rename in its (mutable) list
845+
/// to every identifier, including both bindings and varrefs
846+
/// (and lots of things that will turn out to be neither)
847847
pub struct IdentRenamer<'a> {
848848
renames: &'a mtwt::RenameList,
849849
}

src/libsyntax/fold.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ pub fn noop_fold_pat<T: Folder>(p: Gc<Pat>, folder: &mut T) -> Gc<Pat> {
794794
PatIdent(binding_mode, ref pth1, ref sub) => {
795795
PatIdent(binding_mode,
796796
Spanned{span: folder.new_span(pth1.span),
797-
node: folder.fold_ident(pth1.node)},
797+
node: folder.fold_ident(pth1.node)},
798798
sub.map(|x| folder.fold_pat(x)))
799799
}
800800
PatLit(e) => PatLit(folder.fold_expr(e)),

0 commit comments

Comments
 (0)