about summary refs log tree commit diff
path: root/posix/regexec.c
diff options
context:
space:
mode:
authorArnold Robbins <arnold@skeeve.com>2017-12-19 19:26:08 -0800
committerCarlos O'Donell <carlos@redhat.com>2017-12-19 19:28:21 -0800
commit5069ff32842c60c55f8b573ee66fe43f9ec364af (patch)
tree265720b6dd993d84bc940b422574f311b08aba1e /posix/regexec.c
parentc85e54ac6cef0faed7b7ffc722f52523dec59bf5 (diff)
downloadglibc-5069ff32842c60c55f8b573ee66fe43f9ec364af.tar.gz
glibc-5069ff32842c60c55f8b573ee66fe43f9ec364af.tar.xz
glibc-5069ff32842c60c55f8b573ee66fe43f9ec364af.zip
regex: Fix spelling in comments.
Fix the spelling in various comments throughout the
regex implementation. These changes are also present
in gnulib and will be integrated there also, see:
https://sourceware.org/ml/libc-alpha/2017-12/msg00688.html
Diffstat (limited to 'posix/regexec.c')
-rw-r--r--posix/regexec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/posix/regexec.c b/posix/regexec.c
index a96d86d431..95e31d3f80 100644
--- a/posix/regexec.c
+++ b/posix/regexec.c
@@ -266,7 +266,7 @@ compat_symbol (libc, __compat_regexec, regexec, GLIBC_2_0);
    concerned.
 
    If REGS is not NULL, and BUFP->no_sub is not set, the offsets of the match
-   and all groups is stroed in REGS.  (For the "_2" variants, the offsets are
+   and all groups is stored in REGS.  (For the "_2" variants, the offsets are
    computed relative to the concatenation, not relative to the individual
    strings.)
 
@@ -568,7 +568,7 @@ re_exec (const char *s)
 
 /* Searches for a compiled pattern PREG in the string STRING, whose
    length is LENGTH.  NMATCH, PMATCH, and EFLAGS have the same
-   mingings with regexec.  START, and RANGE have the same meanings
+   meaning as with regexec.  START, and RANGE have the same meanings
    with re_search.
    Return REG_NOERROR if we find a match, and REG_NOMATCH if not,
    otherwise return the error code.
@@ -849,7 +849,7 @@ re_search_internal (const regex_t *preg, const char *string, int length,
 	    goto free_return;
 	}
 
-      /* At last, add the offset to the each registers, since we slided
+      /* At last, add the offset to each register, since we slid
 	 the buffers so that we could assume that the matching starts
 	 from 0.  */
       for (reg_idx = 0; reg_idx < nmatch; ++reg_idx)
@@ -2365,7 +2365,7 @@ find_recover_state (reg_errcode_t *err, re_match_context_t *mctx)
 /* From the node set CUR_NODES, pick up the nodes whose types are
    OP_OPEN_SUBEXP and which have corresponding back references in the regular
    expression. And register them to use them later for evaluating the
-   correspoding back references.  */
+   corresponding back references.  */
 
 static reg_errcode_t
 check_subexp_matching_top (re_match_context_t *mctx, re_node_set *cur_nodes,