[applying,to,mainline] ir: Fix wording of several comments

Message ID 87h6idz8a6.fsf@redhat.com
State New
Headers
Series [applying,to,mainline] ir: Fix wording of several comments |

Commit Message

Dodji Seketeli Feb. 12, 2024, 9:23 p.m. UTC
  Hello,

	* src/abg-ir.cc: (get_decl_name_for_comparison)
	(class_or_union::add_data_member) Fix comment wording.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applying to the master branch.
---
 src/abg-ir.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/src/abg-ir.cc b/src/abg-ir.cc
index 81549bbf..42fe022e 100644
--- a/src/abg-ir.cc
+++ b/src/abg-ir.cc
@@ -5322,7 +5322,7 @@  get_decl_name_for_comparison(const decl_base &d)
   if (has_generic_anonymous_internal_type_name(&d)
       && d.get_is_anonymous())
     {
-      // The decl is anonymous.   It should have the same name ass the
+      // The decl is anonymous.   It should have the same name as the
       // other anymous types of the same kind.
       string r;
       r += get_generic_anonymous_internal_type_name(&d);
@@ -23315,7 +23315,7 @@  class_or_union::add_data_member(var_decl_sptr v, access_specifier access,
   if (!is_static)
     {
       // If this is a non-static variable, add it to the set of
-      // non-static variables, if it's not only in there.
+      // non-static variables, if it's not already in there.
       bool is_already_in = false;
       for (data_members::const_iterator i =
 	     priv_->non_static_data_members_.begin();