diff --git a/c++/cavl.hpp b/c++/cavl.hpp index 5389915..d76c747 100644 --- a/c++/cavl.hpp +++ b/c++/cavl.hpp @@ -790,15 +790,16 @@ class Tree final // NOSONAR cpp:S3624 return NodeType::template search(origin_node_, predicate, factory); } - /// The function has no effect if the node pointer is `nullptr`, or node is not in the tree (aka unlinked). - /// It is safe to pass the result of search() directly as the `node` argument: - /// `tree.remove(Node::search(root, search_predicate));` + /// The function has no effect if the node pointer is nullptr, or node is not in the tree (aka unlinked). + /// It is safe to pass the result of search() directly as the node argument: + /// + /// tree.remove(Node::search(root, search_predicate)); + /// /// but it could be done also by direct node removal: - /// ``` + /// /// if (auto* const node = Node::search(root, search_predicate) { /// node->remove(); /// } - /// ``` /// /// Wraps NodeType<>::remove(). ///