Skip to content

Commit e48429a

Browse files
committed
core: Demode the vec::foldr method
1 parent 9e6d3cf commit e48429a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ impl<T: Copy> &[const T]: CopyableVector<T> {
15311531

15321532
trait ImmutableVector<T> {
15331533
pure fn view(start: uint, end: uint) -> &self/[T];
1534-
pure fn foldr<U: Copy>(z: U, p: fn(t: &T, +u: U) -> U) -> U;
1534+
pure fn foldr<U: Copy>(+z: U, p: fn(t: &T, +u: U) -> U) -> U;
15351535
pure fn map<U>(f: fn(t: &T) -> U) -> ~[U];
15361536
pure fn mapi<U>(f: fn(uint, t: &T) -> U) -> ~[U];
15371537
fn map_r<U>(f: fn(x: &T) -> U) -> ~[U];
@@ -1555,7 +1555,7 @@ impl<T> &[T]: ImmutableVector<T> {
15551555
}
15561556
/// Reduce a vector from right to left
15571557
#[inline]
1558-
pure fn foldr<U: Copy>(z: U, p: fn(t: &T, +u: U) -> U) -> U {
1558+
pure fn foldr<U: Copy>(+z: U, p: fn(t: &T, +u: U) -> U) -> U {
15591559
foldr(self, z, p)
15601560
}
15611561
/// Apply a function to each element of a vector and return the results

0 commit comments

Comments
 (0)