diff mbox series

libiberty: Fix comment typos

Message ID 20241031200003.1266228-1-mark@klomp.org
State New
Headers show
Series libiberty: Fix comment typos | expand

Commit Message

Mark Wielaard Oct. 31, 2024, 8 p.m. UTC
These comment typos were found in the valgrind fork of libiberty
demangle code.

libiberty/ChangeLog:

	* cplus-dem.c: Change preceeded to preceded.

include/ChangeLog:

	* safe-ctype.h: Change accidently to accidentally.
---
 include/safe-ctype.h  | 2 +-
 libiberty/cplus-dem.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Ian Lance Taylor Oct. 31, 2024, 8:45 p.m. UTC | #1
On Thu, Oct 31, 2024 at 1:01 PM Mark Wielaard <mark@klomp.org> wrote:
>
> These comment typos were found in the valgrind fork of libiberty
> demangle code.
>
> libiberty/ChangeLog:
>
>         * cplus-dem.c: Change preceeded to preceded.
>
> include/ChangeLog:
>
>         * safe-ctype.h: Change accidently to accidentally.


This is OK.

Thanks.

Ian
diff mbox series

Patch

diff --git a/include/safe-ctype.h b/include/safe-ctype.h
index 93785da3f24d..eec3d940cf60 100644
--- a/include/safe-ctype.h
+++ b/include/safe-ctype.h
@@ -112,7 +112,7 @@  extern const unsigned char  _sch_tolower[256];
 #define TOUPPER(c) _sch_toupper[(c) & 0xff]
 #define TOLOWER(c) _sch_tolower[(c) & 0xff]
 
-/* Prevent the users of safe-ctype.h from accidently using the routines
+/* Prevent the users of safe-ctype.h from accidentally using the routines
    from ctype.h.  Initially, the approach was to produce an error when
    detecting that ctype.h has been included.  But this was causing
    trouble as ctype.h might get indirectly included as a result of
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index ee9e84f5d6b1..e67ae9300490 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -215,7 +215,7 @@  ada_demangle (const char *mangled, int option ATTRIBUTE_UNUSED)
     goto unknown;
 
   /* Most of the demangling will trivially remove chars.  Operator names
-     may add one char but because they are always preceeded by '__' which is
+     may add one char but because they are always preceded by '__' which is
      replaced by '.', they eventually never expand the size.
      A few special names such as '___elabs' add a few chars (at most 7), but
      they occur only once.  */