[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"
This commit is contained in:
MisakaVan
2025-04-08 18:17:43 +08:00
committed by GitHub
parent 6a42fb8fbf
commit ff5b649a84

View File

@@ -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) {