Skip to content

Commit 749f763

Browse files
neleaigitster
authored andcommitted
typofix: in-code comments
Signed-off-by: Ondřej Bílka <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 17b83d7 commit 749f763

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

compat/nedmalloc/Readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Chew for reporting this.
9797

9898
v1.04alpha_svn915 7th October 2006:
9999
* Fixed failure to unlock thread cache list if allocating a new list failed.
100-
Thanks to Dmitry Chichkov for reporting this. Futher thanks to Aleksey Sanin.
100+
Thanks to Dmitry Chichkov for reporting this. Further thanks to Aleksey Sanin.
101101
* Fixed realloc(0, <size>) segfaulting. Thanks to Dmitry Chichkov for
102102
reporting this.
103103
* Made config defines #ifndef so they can be overridden by the build system.

compat/nedmalloc/malloc.c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3602,8 +3602,8 @@ static void internal_malloc_stats(mstate m) {
36023602
and choose its bk node as its replacement.
36033603
2. If x was the last node of its size, but not a leaf node, it must
36043604
be replaced with a leaf node (not merely one with an open left or
3605-
right), to make sure that lefts and rights of descendents
3606-
correspond properly to bit masks. We use the rightmost descendent
3605+
right), to make sure that lefts and rights of descendants
3606+
correspond properly to bit masks. We use the rightmost descendant
36073607
of x. We could use any other leaf, but this is easy to locate and
36083608
tends to counteract removal of leftmosts elsewhere, and so keeps
36093609
paths shorter than minimally guaranteed. This doesn't loop much

compat/regex/regcomp.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2617,7 +2617,7 @@ parse_dup_op (bin_tree_t *elem, re_string_t *regexp, re_dfa_t *dfa,
26172617
Build the range expression which starts from START_ELEM, and ends
26182618
at END_ELEM. The result are written to MBCSET and SBCSET.
26192619
RANGE_ALLOC is the allocated size of mbcset->range_starts, and
2620-
mbcset->range_ends, is a pointer argument sinse we may
2620+
mbcset->range_ends, is a pointer argument since we may
26212621
update it. */
26222622

26232623
static reg_errcode_t
@@ -2788,7 +2788,7 @@ parse_bracket_exp (re_string_t *regexp, re_dfa_t *dfa, re_token_t *token,
27882788
const int32_t *symb_table;
27892789
const unsigned char *extra;
27902790

2791-
/* Local function for parse_bracket_exp used in _LIBC environement.
2791+
/* Local function for parse_bracket_exp used in _LIBC environment.
27922792
Seek the collating symbol entry correspondings to NAME.
27932793
Return the index of the symbol in the SYMB_TABLE. */
27942794

@@ -2892,11 +2892,11 @@ parse_bracket_exp (re_string_t *regexp, re_dfa_t *dfa, re_token_t *token,
28922892
return UINT_MAX;
28932893
}
28942894

2895-
/* Local function for parse_bracket_exp used in _LIBC environement.
2895+
/* Local function for parse_bracket_exp used in _LIBC environment.
28962896
Build the range expression which starts from START_ELEM, and ends
28972897
at END_ELEM. The result are written to MBCSET and SBCSET.
28982898
RANGE_ALLOC is the allocated size of mbcset->range_starts, and
2899-
mbcset->range_ends, is a pointer argument sinse we may
2899+
mbcset->range_ends, is a pointer argument since we may
29002900
update it. */
29012901

29022902
auto inline reg_errcode_t
@@ -2976,11 +2976,11 @@ parse_bracket_exp (re_string_t *regexp, re_dfa_t *dfa, re_token_t *token,
29762976
return REG_NOERROR;
29772977
}
29782978

2979-
/* Local function for parse_bracket_exp used in _LIBC environement.
2979+
/* Local function for parse_bracket_exp used in _LIBC environment.
29802980
Build the collating element which is represented by NAME.
29812981
The result are written to MBCSET and SBCSET.
29822982
COLL_SYM_ALLOC is the allocated size of mbcset->coll_sym, is a
2983-
pointer argument sinse we may update it. */
2983+
pointer argument since we may update it. */
29842984

29852985
auto inline reg_errcode_t
29862986
__attribute ((always_inline))
@@ -3419,7 +3419,7 @@ parse_bracket_symbol (bracket_elem_t *elem, re_string_t *regexp,
34193419
Build the equivalence class which is represented by NAME.
34203420
The result are written to MBCSET and SBCSET.
34213421
EQUIV_CLASS_ALLOC is the allocated size of mbcset->equiv_classes,
3422-
is a pointer argument sinse we may update it. */
3422+
is a pointer argument since we may update it. */
34233423

34243424
static reg_errcode_t
34253425
#ifdef RE_ENABLE_I18N
@@ -3515,7 +3515,7 @@ build_equiv_class (bitset_t sbcset, const unsigned char *name)
35153515
Build the character class which is represented by NAME.
35163516
The result are written to MBCSET and SBCSET.
35173517
CHAR_CLASS_ALLOC is the allocated size of mbcset->char_classes,
3518-
is a pointer argument sinse we may update it. */
3518+
is a pointer argument since we may update it. */
35193519

35203520
static reg_errcode_t
35213521
#ifdef RE_ENABLE_I18N

compat/regex/regexec.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ re_search_stub (struct re_pattern_buffer *bufp,
455455

456456
rval = 0;
457457

458-
/* I hope we needn't fill ther regs with -1's when no match was found. */
458+
/* I hope we needn't fill their regs with -1's when no match was found. */
459459
if (result != REG_NOERROR)
460460
rval = -1;
461461
else if (regs != NULL)
@@ -1071,7 +1071,7 @@ acquire_init_state_context (reg_errcode_t *err, const re_match_context_t *mctx,
10711071
FL_LONGEST_MATCH means we want the POSIX longest matching.
10721072
If P_MATCH_FIRST is not NULL, and the match fails, it is set to the
10731073
next place where we may want to try matching.
1074-
Note that the matcher assume that the maching starts from the current
1074+
Note that the matcher assume that the matching starts from the current
10751075
index of the buffer. */
10761076

10771077
static int
@@ -2239,7 +2239,7 @@ sift_states_iter_mb (const re_match_context_t *mctx, re_sift_context_t *sctx,
22392239
dfa->nexts[node_idx]))
22402240
/* The node can't accept the `multi byte', or the
22412241
destination was already thrown away, then the node
2242-
could't accept the current input `multi byte'. */
2242+
couldn't accept the current input `multi byte'. */
22432243
naccepted = 0;
22442244
/* Otherwise, it is sure that the node could accept
22452245
`naccepted' bytes input. */

convert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ int renormalize_buffer(const char *path, const char *src, size_t len, struct str
835835

836836
/*****************************************************************
837837
*
838-
* Streaming converison support
838+
* Streaming conversion support
839839
*
840840
*****************************************************************/
841841

convert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static inline int would_convert_to_git(const char *path, const char *src,
4848

4949
/*****************************************************************
5050
*
51-
* Streaming converison support
51+
* Streaming conversion support
5252
*
5353
*****************************************************************/
5454

diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4466,7 +4466,7 @@ void diff_flush(struct diff_options *options)
44664466
DIFF_OPT_TST(options, DIFF_FROM_CONTENTS)) {
44674467
/*
44684468
* run diff_flush_patch for the exit status. setting
4469-
* options->file to /dev/null should be safe, becaue we
4469+
* options->file to /dev/null should be safe, because we
44704470
* aren't supposed to produce any output anyway.
44714471
*/
44724472
if (options->close_file)

kwset.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct trie
6565
struct trie *fail; /* Aho-Corasick failure function. */
6666
int depth; /* Depth of this node from the root. */
6767
int shift; /* Shift function for search failures. */
68-
int maxshift; /* Max shift of self and descendents. */
68+
int maxshift; /* Max shift of self and descendants. */
6969
};
7070

7171
/* Structure returned opaquely to the caller, containing everything. */
@@ -308,7 +308,7 @@ treefails (register struct tree const *tree, struct trie const *fail,
308308
treefails(tree->rlink, fail, recourse);
309309

310310
/* Find, in the chain of fails going back to the root, the first
311-
node that has a descendent on the current label. */
311+
node that has a descendant on the current label. */
312312
while (fail)
313313
{
314314
link = fail->links;
@@ -426,13 +426,13 @@ kwsprep (kwset_t kws)
426426
computing the delta table, failure function, and shift function. */
427427
for (curr = last = kwset->trie; curr; curr = curr->next)
428428
{
429-
/* Enqueue the immediate descendents in the level order queue. */
429+
/* Enqueue the immediate descendants in the level order queue. */
430430
enqueue(curr->links, &last);
431431

432432
curr->shift = kwset->mind;
433433
curr->maxshift = kwset->mind;
434434

435-
/* Update the delta table for the descendents of this node. */
435+
/* Update the delta table for the descendants of this node. */
436436
treedelta(curr->links, curr->depth, delta);
437437

438438
/* Compute the failure function for the descendants of this node. */
@@ -450,7 +450,7 @@ kwsprep (kwset_t kws)
450450
fail->shift = curr->depth - fail->depth;
451451

452452
/* If the current node is accepting then the shift at the
453-
fail and its descendents should be no larger than the
453+
fail and its descendants should be no larger than the
454454
difference of their depths. */
455455
if (curr->accepting && fail->maxshift > curr->depth - fail->depth)
456456
fail->maxshift = curr->depth - fail->depth;

sha1_name.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static void update_candidates(struct disambiguate_state *ds, const unsigned char
5252
}
5353

5454
if (!ds->candidate_ok) {
55-
/* discard the candidate; we know it does not satisify fn */
55+
/* discard the candidate; we know it does not satisfy fn */
5656
hashcpy(ds->candidate, current);
5757
ds->candidate_checked = 0;
5858
return;

0 commit comments

Comments
 (0)