This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix a couple of comment typos in cp/parser.c
- From: Phil Edwards <phil at jaj dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 11 Jan 2003 04:09:58 -0500
- Subject: [PATCH] Fix a couple of comment typos in cp/parser.c
Well, one typo and one thinko, to be precise. Large parts of GCC's comments
suffer from a malaise where parameter 'foo' is documented, but the name
of the parameter is actually 'bar'. Usually they're harmless; this one
took me a minute to figure out because there /is/ another 'foo' parameter.
Committed as an obvious fix.
2003-01-11 Phil Edwards <pme@gcc.gnu.org>
* parser.c: Fix comment typos.
Index: parser.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/parser.c,v
retrieving revision 1.27
diff -u -3 -p -r1.27 parser.c
--- parser.c 10 Jan 2003 22:57:04 -0000 1.27
+++ parser.c 11 Jan 2003 09:05:37 -0000
@@ -952,7 +952,7 @@ cp_lexer_rollback_tokens (lexer)
lexer->next_token = cp_lexer_advance_token (lexer,
lexer->first_token,
delta);
- /* It might be the case that there wer no tokens when we started
+ /* It might be the case that there were no tokens when we started
saving tokens, but that there are some tokens now. */
if (!lexer->next_token && lexer->first_token)
lexer->next_token = lexer->first_token;
@@ -3109,7 +3109,7 @@ cp_parser_primary_expression (cp_parser
If CHECK_DEPENDENCY_P is false, then names are looked up inside
uninstantiated templates.
- If *TEMPLATE_KEYWORD_P is non-NULL, it is set to true iff the
+ If *TEMPLATE_P is non-NULL, it is set to true iff the
`template' keyword is used to explicitly indicate that the entity
named is a template. */