1
0
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:
Vincenzo Palazzo 2022-02-22 14:41:30 +01:00 committed by GitHub
parent 1032cf5c04
commit 6a876d4170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ fn new_node<T>(parent &BSTreeNode<T>, value T) &BSTreeNode<T> {
// new_none_node creates a dummy node.
fn new_none_node<T>(init bool) &BSTreeNode<T> {
return &BSTreeNode<T>{
is_init: false
is_init: init
}
}