]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/rbtree.c: fix the example typo
authorHsin Chang Yu <zxcvb600870024@gmail.com>
Fri, 28 Jun 2024 14:22:29 +0000 (22:22 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 5 Jul 2024 06:43:10 +0000 (23:43 -0700)
commitcedb08caac587b55c79d0463400839acab4638c0
tree9b678230cf776b4d1797779048344db5c95e94ed
parent255547c6bb8940a97eea94ef9d464ea5967763fb
lib/rbtree.c: fix the example typo

Replace the "Sr" with "sr", the example is wrong if sl and N don't have
child nodes, so sr should be red node.

Link: https://lkml.kernel.org/r/20240628142229.69419-1-zxcvb600870024@gmail.com
Signed-off-by: Hsin Chang Yu <zxcvb600870024@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/rbtree.c