summaryrefslogtreecommitdiff
path: root/compat/nedmalloc/malloc.c.h
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2013-07-22 21:02:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-07-22 23:06:49 (GMT)
commit749f763dbbe4dbcc4082f02bf98bfc1a09427c6f (patch)
treeb4c8fc9290480928d1908a63cfe5db0f06dffd51 /compat/nedmalloc/malloc.c.h
parent17b83d71d52a5eb6a621be22daa624414d3ee514 (diff)
downloadgit-749f763dbbe4dbcc4082f02bf98bfc1a09427c6f.zip
git-749f763dbbe4dbcc4082f02bf98bfc1a09427c6f.tar.gz
git-749f763dbbe4dbcc4082f02bf98bfc1a09427c6f.tar.bz2
typofix: in-code comments
Signed-off-by: Ondřej Bílka <neleai@seznam.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/nedmalloc/malloc.c.h')
-rw-r--r--compat/nedmalloc/malloc.c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/nedmalloc/malloc.c.h b/compat/nedmalloc/malloc.c.h
index 5a44dea..ed4f1fa 100644
--- a/compat/nedmalloc/malloc.c.h
+++ b/compat/nedmalloc/malloc.c.h
@@ -3602,8 +3602,8 @@ static void internal_malloc_stats(mstate m) {
and choose its bk node as its replacement.
2. If x was the last node of its size, but not a leaf node, it must
be replaced with a leaf node (not merely one with an open left or
- right), to make sure that lefts and rights of descendents
- correspond properly to bit masks. We use the rightmost descendent
+ right), to make sure that lefts and rights of descendants
+ correspond properly to bit masks. We use the rightmost descendant
of x. We could use any other leaf, but this is easy to locate and
tends to counteract removal of leftmosts elsewhere, and so keeps
paths shorter than minimally guaranteed. This doesn't loop much