diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-04-12 00:36:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-12 12:23:44 -0700 |
commit | ce9171cd63dc64bd6cfcbb09df630774b2b2a99c (patch) | |
tree | 4eef6b978014f9780e4b2482cad256b093e1cabf /compat/regex/regcomp.c | |
parent | 7323513d287d00fe2b40d659fb49042fb027e749 (diff) | |
download | git-ce9171cd63dc64bd6cfcbb09df630774b2b2a99c.tar.gz |
compat/regex: fix spelling and grammar in comments
Some of these were found using Lucas De Marchi's codespell tool.
Others noticed by Eric Sunshine.
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Acked-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/regex/regcomp.c')
-rw-r--r-- | compat/regex/regcomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/regex/regcomp.c b/compat/regex/regcomp.c index 8c96ed942c..d0025bd58d 100644 --- a/compat/regex/regcomp.c +++ b/compat/regex/regcomp.c @@ -2095,7 +2095,7 @@ peek_token_bracket (re_token_t *token, re_string_t *input, reg_syntax_t syntax) /* Entry point of the parser. Parse the regular expression REGEXP and return the structure tree. - If an error is occured, ERR is set by error code, and return NULL. + If an error has occurred, ERR is set by error code, and return NULL. This function build the following tree, from regular expression <reg_exp>: CAT / \ @@ -3715,7 +3715,7 @@ build_charclass_op (re_dfa_t *dfa, RE_TRANSLATE_TYPE trans, /* This is intended for the expressions like "a{1,3}". Fetch a number from `input', and return the number. Return -1, if the number field is empty like "{,1}". - Return -2, If an error is occured. */ + Return -2, if an error has occurred. */ static int fetch_number (re_string_t *input, re_token_t *token, reg_syntax_t syntax) |