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/regex_internal.c | |
parent | 7323513d287d00fe2b40d659fb49042fb027e749 (diff) | |
download | git-ce9171cd63dc64bd6cfcbb09df630774b2b2a99c.tar.gz git-ce9171cd63dc64bd6cfcbb09df630774b2b2a99c.tar.xz |
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/regex_internal.c')
-rw-r--r-- | compat/regex/regex_internal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/regex/regex_internal.c b/compat/regex/regex_internal.c index 193854cf5..d4121f2f4 100644 --- a/compat/regex/regex_internal.c +++ b/compat/regex/regex_internal.c @@ -1284,7 +1284,7 @@ re_node_set_merge (re_node_set *dest, const re_node_set *src) /* Insert the new element ELEM to the re_node_set* SET. SET should not already have ELEM. - return -1 if an error is occured, return 1 otherwise. */ + return -1 if an error has occurred, return 1 otherwise. */ static int internal_function @@ -1341,7 +1341,7 @@ re_node_set_insert (re_node_set *set, int elem) /* Insert the new element ELEM to the re_node_set* SET. SET should not already have any element greater than or equal to ELEM. - Return -1 if an error is occured, return 1 otherwise. */ + Return -1 if an error has occurred, return 1 otherwise. */ static int internal_function @@ -1416,7 +1416,7 @@ re_node_set_remove_at (re_node_set *set, int idx) /* Add the token TOKEN to dfa->nodes, and return the index of the token. - Or return -1, if an error will be occured. */ + Or return -1, if an error has occurred. */ static int internal_function |