summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/argz-replace.c2
-rw-r--r--string/argz.h2
-rw-r--r--string/bits/string2.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/string/argz-replace.c b/string/argz-replace.c
index aeec5f5db3..cc1807689b 100644
--- a/string/argz-replace.c
+++ b/string/argz-replace.c
@@ -43,7 +43,7 @@ str_append (char **to, size_t *to_len, const char *buf, const size_t buf_len)
     }
 }
 
-/* Replace any occurances of the string STR in ARGZ with WITH, reallocating
+/* Replace any occurrences of the string STR in ARGZ with WITH, reallocating
    ARGZ as necessary.  If REPLACE_COUNT is non-zero, *REPLACE_COUNT will be
    incremented by number of replacements performed.  */
 error_t
diff --git a/string/argz.h b/string/argz.h
index a90da9a147..45441db221 100644
--- a/string/argz.h
+++ b/string/argz.h
@@ -123,7 +123,7 @@ extern error_t argz_insert (char **__restrict __argz,
 			    char *__restrict __before,
 			    __const char *__restrict __entry) __THROW;
 
-/* Replace any occurances of the string STR in ARGZ with WITH, reallocating
+/* Replace any occurrences of the string STR in ARGZ with WITH, reallocating
    ARGZ as necessary.  If REPLACE_COUNT is non-zero, *REPLACE_COUNT will be
    incremented by number of replacements performed.  */
 extern error_t __argz_replace (char **__restrict __argz,
diff --git a/string/bits/string2.h b/string/bits/string2.h
index f8c32e3248..b42987e763 100644
--- a/string/bits/string2.h
+++ b/string/bits/string2.h
@@ -37,7 +37,7 @@
    to make sure we don't get redefinitions.
 
    We must use here macros instead of inline functions since the
-   trick won't work with the later.  */
+   trick won't work with the latter.  */
 
 #ifndef __STRING_INLINE
 # ifdef __cplusplus