datatypes: small fix for the BST node constructor (#13569)

pull/13573/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }
} }