diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-06 22:50:53 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-06 22:52:02 +0200 |
| commit | d39ca857fc7d51df6a00db701739966c3af9cb59 (patch) | |
| tree | e869b81500e8809938e4a893ffe21a1fa5237975 /src/test/bench | |
| parent | Rename std modules to be camelcased (diff) | |
| download | rust-d39ca857fc7d51df6a00db701739966c3af9cb59.tar.xz rust-d39ca857fc7d51df6a00db701739966c3af9cb59.zip | |
Remove a few more superfluous 'mutable' keywords
Diffstat (limited to 'src/test/bench')
| -rw-r--r-- | src/test/bench/shootout/fannkuchredux.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/bench/shootout/fannkuchredux.rs b/src/test/bench/shootout/fannkuchredux.rs index ad3d7dd2..5af56a47 100644 --- a/src/test/bench/shootout/fannkuchredux.rs +++ b/src/test/bench/shootout/fannkuchredux.rs @@ -7,14 +7,14 @@ import std.Vec; fn fannkuch(int n) -> int { - fn perm1init(uint i) -> mutable int { + fn perm1init(uint i) -> int { ret i as int; } auto perm1init_ = perm1init; // Rustboot workaround - auto perm = Vec.init_elt[mutable int](0, n as uint); - auto perm1 = Vec.init_fn[mutable int](perm1init_, n as uint); - auto count = Vec.init_elt[mutable int](0, n as uint); + auto perm = Vec.init_elt(0, n as uint); + auto perm1 = Vec.init_fn(perm1init_, n as uint); + auto count = Vec.init_elt(0, n as uint); auto f = 0; auto i = 0; |