Skip to content

Commit ee5d7bb

Browse files
committed
stdlib: Don't have ivec::map take a mutable alias
1 parent 375f0b2 commit ee5d7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/ivec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fn grow_set[T](&mutable T[mutable] v, uint index, &T initval, &T val) {
161161

162162
// Functional utilities
163163

164-
fn map[T,U](fn(&T)->U f, &mutable T[mutable?] v) -> U[] {
164+
fn map[T,U](fn(&T)->U f, &T[mutable?] v) -> U[] {
165165
auto result = ~[];
166166
reserve(result, len(v));
167167
for (T elem in v) {

0 commit comments

Comments
 (0)