[libcxx-commits] [libcxx] [libc++] Fix a comment typo in __tree (PR #134831)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 8 03:07:30 PDT 2025
https://github.com/MisakaVan created https://github.com/llvm/llvm-project/pull/134831
"Returns true **is** __root is a proper red black tree"
->
"Returns true **if** __root is a proper red black tree"
>From 6785c1c6d2b6625f456ccf106be956fbd1560cd5 Mon Sep 17 00:00:00 2001
From: MisakaVan <2102315149 at qq.com>
Date: Tue, 8 Apr 2025 17:45:09 +0800
Subject: [PATCH] [libc++] Fix a comment typo in __tree
---
libcxx/include/__tree | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcxx/include/__tree b/libcxx/include/__tree
index 9d28381c8c2ce..cdf8d04121d71 100644
--- a/libcxx/include/__tree
+++ b/libcxx/include/__tree
@@ -135,7 +135,7 @@ unsigned __tree_sub_invariant(_NodePtr __x) {
}
// Determines if the red black tree rooted at __root is a proper red black tree.
-// __root == nullptr is a proper tree. Returns true is __root is a proper
+// __root == nullptr is a proper tree. Returns true if __root is a proper
// red black tree, else returns false.
template <class _NodePtr>
_LIBCPP_HIDE_FROM_ABI bool __tree_invariant(_NodePtr __root) {
More information about the libcxx-commits
mailing list