diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-08-04 01:59:24 +0200 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2013-08-05 22:42:21 +0200 |
| commit | 0ac7a219f043d3b1c8c239089d9dd6e6c9fa830b (patch) | |
| tree | 6dbb028659dbc0931ec23398e529549c84bba0a4 /src/test/bench/shootout-binarytrees.rs | |
| parent | d8b299d179653cbde783f62f70b5531dbaa5c5a6 (diff) | |
| download | rust-0ac7a219f043d3b1c8c239089d9dd6e6c9fa830b.tar.gz rust-0ac7a219f043d3b1c8c239089d9dd6e6c9fa830b.zip | |
Updated std::Option, std::Either and std::Result
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
Diffstat (limited to 'src/test/bench/shootout-binarytrees.rs')
| -rw-r--r-- | src/test/bench/shootout-binarytrees.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/bench/shootout-binarytrees.rs b/src/test/bench/shootout-binarytrees.rs index 57bf33fb2fd..8a2ae3e8995 100644 --- a/src/test/bench/shootout-binarytrees.rs +++ b/src/test/bench/shootout-binarytrees.rs @@ -48,7 +48,7 @@ fn main() { args }; - let n = int::from_str(args[1]).get(); + let n = int::from_str(args[1]).unwrap(); let min_depth = 4; let mut max_depth; if min_depth + 2 > n { |
