mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
datatypes: small fix for the BST node constructor (#13569)
This commit is contained in:
parent
1032cf5c04
commit
6a876d4170
@ -41,7 +41,7 @@ fn new_node<T>(parent &BSTreeNode<T>, value T) &BSTreeNode<T> {
|
|||||||
// new_none_node creates a dummy node.
|
// new_none_node creates a dummy node.
|
||||||
fn new_none_node<T>(init bool) &BSTreeNode<T> {
|
fn new_none_node<T>(init bool) &BSTreeNode<T> {
|
||||||
return &BSTreeNode<T>{
|
return &BSTreeNode<T>{
|
||||||
is_init: false
|
is_init: init
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user