* [PATCH] Docs/core-api: fix typos in rbtree.rst
@ 2026-02-10 6:08 Min-Hsun Chang
2026-02-10 6:25 ` Randy Dunlap
2026-02-14 17:12 ` Jonathan Corbet
0 siblings, 2 replies; 3+ messages in thread
From: Min-Hsun Chang @ 2026-02-10 6:08 UTC (permalink / raw)
To: corbet; +Cc: rob, linux-doc, linux-kernel, Min-Hsun Chang
Correct minor typographical errors in the red-black tree documentation:
- Remove redundant "a" in the cached rbtrees section.
- Fix "updated" to "update" in the augmented rbtrees section.
- Fix "be looking" to "by looking" in the interval tree sample usage.
Signed-off-by: Min-Hsun Chang <chmh0624@gmail.com>
---
Documentation/core-api/rbtree.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/core-api/rbtree.rst b/Documentation/core-api/rbtree.rst
index ed1a9fbc779e..cce80e19087b 100644
--- a/Documentation/core-api/rbtree.rst
+++ b/Documentation/core-api/rbtree.rst
@@ -197,7 +197,7 @@ Cached rbtrees
--------------
Computing the leftmost (smallest) node is quite a common task for binary
-search trees, such as for traversals or users relying on a the particular
+search trees, such as for traversals or users relying on the particular
order for their own logic. To this end, users can use 'struct rb_root_cached'
to optimize O(logN) rb_first() calls to a simple pointer fetch avoiding
potentially expensive tree iterations. This is done at negligible runtime
@@ -255,7 +255,7 @@ affected subtrees.
When erasing a node, the user must call rb_erase_augmented() instead of
rb_erase(). rb_erase_augmented() calls back into user provided functions
-to updated the augmented information on affected subtrees.
+to update the augmented information on affected subtrees.
In both cases, the callbacks are provided through struct rb_augment_callbacks.
3 callbacks must be defined:
@@ -293,7 +293,7 @@ way making it possible to do efficient lookup and exact match.
This "extra information" stored in each node is the maximum hi
(max_hi) value among all the nodes that are its descendants. This
-information can be maintained at each node just be looking at the node
+information can be maintained at each node just by looking at the node
and its immediate children. And this will be used in O(log n) lookup
for lowest match (lowest start address among all possible matches)
with something like::
--
2.50.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Docs/core-api: fix typos in rbtree.rst
2026-02-10 6:08 [PATCH] Docs/core-api: fix typos in rbtree.rst Min-Hsun Chang
@ 2026-02-10 6:25 ` Randy Dunlap
2026-02-14 17:12 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2026-02-10 6:25 UTC (permalink / raw)
To: Min-Hsun Chang, corbet; +Cc: rob, linux-doc, linux-kernel
On 2/9/26 10:08 PM, Min-Hsun Chang wrote:
> Correct minor typographical errors in the red-black tree documentation:
> - Remove redundant "a" in the cached rbtrees section.
> - Fix "updated" to "update" in the augmented rbtrees section.
> - Fix "be looking" to "by looking" in the interval tree sample usage.
>
> Signed-off-by: Min-Hsun Chang <chmh0624@gmail.com>
> ---
> Documentation/core-api/rbtree.rst | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.
--
~Randy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Docs/core-api: fix typos in rbtree.rst
2026-02-10 6:08 [PATCH] Docs/core-api: fix typos in rbtree.rst Min-Hsun Chang
2026-02-10 6:25 ` Randy Dunlap
@ 2026-02-14 17:12 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2026-02-14 17:12 UTC (permalink / raw)
To: Min-Hsun Chang; +Cc: rob, linux-doc, linux-kernel, Min-Hsun Chang
Min-Hsun Chang <chmh0624@gmail.com> writes:
> Correct minor typographical errors in the red-black tree documentation:
> - Remove redundant "a" in the cached rbtrees section.
> - Fix "updated" to "update" in the augmented rbtrees section.
> - Fix "be looking" to "by looking" in the interval tree sample usage.
>
> Signed-off-by: Min-Hsun Chang <chmh0624@gmail.com>
> ---
> Documentation/core-api/rbtree.rst | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-02-14 17:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-10 6:08 [PATCH] Docs/core-api: fix typos in rbtree.rst Min-Hsun Chang
2026-02-10 6:25 ` Randy Dunlap
2026-02-14 17:12 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox