diff options
Diffstat (limited to 'src/test/bench/shootout-binarytrees.rs')
| -rw-r--r-- | src/test/bench/shootout-binarytrees.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/bench/shootout-binarytrees.rs b/src/test/bench/shootout-binarytrees.rs index c9f1ca832a3..37a5d215a7c 100644 --- a/src/test/bench/shootout-binarytrees.rs +++ b/src/test/bench/shootout-binarytrees.rs @@ -47,9 +47,9 @@ fn main(args: ~[~str]) { let stretch_depth = max_depth + 1; let stretch_tree = bottom_up_tree(&stretch_arena, 0, stretch_depth); - io::println(fmt!{"stretch tree of depth %d\t check: %d", + io::println(fmt!("stretch tree of depth %d\t check: %d", stretch_depth, - item_check(stretch_tree)}); + item_check(stretch_tree))); let long_lived_arena = arena::arena(); let long_lived_tree = bottom_up_tree(&long_lived_arena, 0, max_depth); @@ -65,12 +65,12 @@ fn main(args: ~[~str]) { chk += item_check(temp_tree); i += 1; } - io::println(fmt!{"%d\t trees of depth %d\t check: %d", + io::println(fmt!("%d\t trees of depth %d\t check: %d", iterations * 2, depth, - chk}); + chk)); depth += 2; } - io::println(fmt!{"long lived trees of depth %d\t check: %d", + io::println(fmt!("long lived trees of depth %d\t check: %d", max_depth, - item_check(long_lived_tree)}); + item_check(long_lived_tree))); } |
