[libcxx-commits] [libcxx] ff5b649 - [libc++] Fix a comment typo in __tree (#134831)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 8 03:17:47 PDT 2025


Author: MisakaVan
Date: 2025-04-08T12:17:43+02:00
New Revision: ff5b649a843a0c1be9dc59612411a1693c95d651

URL: https://github.com/llvm/llvm-project/commit/ff5b649a843a0c1be9dc59612411a1693c95d651
DIFF: https://github.com/llvm/llvm-project/commit/ff5b649a843a0c1be9dc59612411a1693c95d651.diff

LOG: [libc++] Fix a comment typo in __tree (#134831)

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

Added: 
    

Modified: 
    libcxx/include/__tree

Removed: 
    


################################################################################
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