[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:08:23 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: MisakaVan (MisakaVan)

<details>
<summary>Changes</summary>

"Returns true **is** __root is a proper red black tree"
->
"Returns true **if** __root is a proper red black tree"

---
Full diff: https://github.com/llvm/llvm-project/pull/134831.diff


1 Files Affected:

- (modified) libcxx/include/__tree (+1-1) 


``````````diff
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) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/134831


More information about the libcxx-commits mailing list