Skip to content

Commit

Permalink
Removed pub from BinarySearchTreeIter since the struct is not public …
Browse files Browse the repository at this point in the history
…and it should only be created from inside the module itself.
  • Loading branch information
scriptandcompile committed Jun 13, 2024
1 parent 3ea6cb5 commit 8aaada4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_structures/binary_search_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ impl<'a, T> BinarySearchTreeIter<'a, T>
where
T: Ord,
{
pub fn new(tree: &BinarySearchTree<T>) -> BinarySearchTreeIter<T> {
fn new(tree: &BinarySearchTree<T>) -> BinarySearchTreeIter<T> {
let mut iter = BinarySearchTreeIter { stack: vec![tree] };
iter.stack_push_left();
iter
Expand Down

0 comments on commit 8aaada4

Please sign in to comment.