bst: fmt the example

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
pull/13453/head
Vincenzo Palazzo 2022-02-18 23:30:00 +01:00
parent 11e55d9e6a
commit c4adee87c1
No known key found for this signature in database
GPG Key ID: 8B6DC2B870B80D5F
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ fn main() {
bst.insert(KeyVal{ key: 1, val: 12 })
println(bst.in_order_traversal())
bst.insert(KeyVal{key: 2, val: 34})
bst.insert(KeyVal{key:-2, val: 203})
bst.insert(KeyVal{ key: 2, val: 34 })
bst.insert(KeyVal{ key: -2, val: 203 })
for elem in bst.in_order_traversal() {
println(elem.val)