mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-16 03:59:18 +08:00
Fix a comment in binary_search_tree code
This commit is contained in:
@@ -87,7 +87,7 @@ pub fn BinarySearchTree(comptime T: type) type {
|
||||
cur = cur.?.left;
|
||||
}
|
||||
}
|
||||
// 插入节点 val
|
||||
// 插入节点
|
||||
var node = try self.mem_allocator.create(inc.TreeNode(T));
|
||||
node.init(num);
|
||||
if (pre.?.val < num) {
|
||||
|
||||
Reference in New Issue
Block a user