This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] cp/*.c: Fix comment typos.


Hi,

Committed as obvious.

Kazu Hirata

2007-07-28  Kazu Hirata  <kazu@codesourcery.com>

	* pt.c, tree.c, typeck2.c: Fix comment typos.

Index: cp/pt.c
===================================================================
--- cp/pt.c	(revision 127029)
+++ cp/pt.c	(working copy)
@@ -2213,7 +2213,7 @@ check_explicit_specialization (tree decl
               tree tmpl_func = DECL_TEMPLATE_RESULT (gen_tmpl);
               gcc_assert (TREE_CODE (tmpl_func) == FUNCTION_DECL);
 
-              /* This specialization has the same linkage and visiblity as
+              /* This specialization has the same linkage and visibility as
                  the function template it specializes.  */
               TREE_PUBLIC (decl) = TREE_PUBLIC (tmpl_func);
               DECL_THIS_STATIC (decl) = DECL_THIS_STATIC (tmpl_func);
@@ -4637,7 +4637,7 @@ convert_template_argument (tree parm,
   requires_type = (TREE_CODE (parm) == TYPE_DECL
 		   || requires_tmpl_type);
 
-  /* When determining whether a argument pack expansion is a template,
+  /* When determining whether an argument pack expansion is a template,
      look at the pattern.  */
   if (TREE_CODE (check_arg) == TYPE_PACK_EXPANSION)
     check_arg = PACK_EXPANSION_PATTERN (check_arg);
Index: cp/tree.c
===================================================================
--- cp/tree.c	(revision 127029)
+++ cp/tree.c	(working copy)
@@ -83,7 +83,7 @@ lvalue_p_1 (tree ref,
 	  && TREE_CODE (ref) != COMPONENT_REF)
 	return clk_none;
 
-      /* lvalue references and named rvalue refences are lvalues */
+      /* lvalue references and named rvalue references are lvalues.  */
       return clk_ordinary;
     }
 
Index: cp/typeck2.c
===================================================================
--- cp/typeck2.c	(revision 127029)
+++ cp/typeck2.c	(working copy)
@@ -764,8 +764,8 @@ picflag_from_initializer (tree init)
 }
 
 /* Subroutine of process_init_constructor, which will process an initializer
-   INIT for a array or vector of type TYPE. Returns the flags (PICFLAG_*) which
-   describe the initializers.  */
+   INIT for an array or vector of type TYPE. Returns the flags (PICFLAG_*)
+   which describe the initializers.  */
 
 static int
 process_init_constructor_array (tree type, tree init)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]