aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-05-06 22:50:53 +0200
committerMarijn Haverbeke <[email protected]>2011-05-06 22:52:02 +0200
commitd39ca857fc7d51df6a00db701739966c3af9cb59 (patch)
treee869b81500e8809938e4a893ffe21a1fa5237975 /src
parentRename std modules to be camelcased (diff)
downloadrust-d39ca857fc7d51df6a00db701739966c3af9cb59.tar.xz
rust-d39ca857fc7d51df6a00db701739966c3af9cb59.zip
Remove a few more superfluous 'mutable' keywords
Diffstat (limited to 'src')
-rw-r--r--src/test/bench/shootout/fannkuchredux.rs8
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;