Skip to content

Commit 82a983d

Browse files
Erick Tryzelaarerickt
Erick Tryzelaar
authored andcommitted
Remove superfluous parentheses.
1 parent a0ef334 commit 82a983d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/par.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn map_slices<A: Copy Owned, B: Copy Owned>(
8585

8686
/// A parallel version of map.
8787
pub fn map<A: Copy Owned, B: Copy Owned>(
88-
xs: &[A], f: fn~((&A)) -> B) -> ~[B] {
88+
xs: &[A], f: fn~(&A) -> B) -> ~[B] {
8989
vec::concat(map_slices(xs, || {
9090
fn~(_base: uint, slice : &[A], copy f) -> ~[B] {
9191
vec::map(slice, |x| f(x))
@@ -95,7 +95,7 @@ pub fn map<A: Copy Owned, B: Copy Owned>(
9595

9696
/// A parallel version of mapi.
9797
pub fn mapi<A: Copy Owned, B: Copy Owned>(xs: &[A],
98-
f: fn~(uint, (&A)) -> B) -> ~[B] {
98+
f: fn~(uint, &A) -> B) -> ~[B] {
9999
let slices = map_slices(xs, || {
100100
fn~(base: uint, slice : &[A], copy f) -> ~[B] {
101101
vec::mapi(slice, |i, x| {
@@ -132,7 +132,7 @@ pub fn mapi_factory<A: Copy Owned, B: Copy Owned>(
132132
}
133133

134134
/// Returns true if the function holds for all elements in the vector.
135-
pub fn alli<A: Copy Owned>(xs: &[A], f: fn~(uint, (&A)) -> bool) -> bool {
135+
pub fn alli<A: Copy Owned>(xs: &[A], f: fn~(uint, &A) -> bool) -> bool {
136136
do vec::all(map_slices(xs, || {
137137
fn~(base: uint, slice : &[A], copy f) -> bool {
138138
vec::alli(slice, |i, x| {
@@ -143,7 +143,7 @@ pub fn alli<A: Copy Owned>(xs: &[A], f: fn~(uint, (&A)) -> bool) -> bool {
143143
}
144144

145145
/// Returns true if the function holds for any elements in the vector.
146-
pub fn any<A: Copy Owned>(xs: &[A], f: fn~(&(A)) -> bool) -> bool {
146+
pub fn any<A: Copy Owned>(xs: &[A], f: fn~(&A) -> bool) -> bool {
147147
do vec::any(map_slices(xs, || {
148148
fn~(_base : uint, slice: &[A], copy f) -> bool {
149149
vec::any(slice, |x| f(x))

0 commit comments

Comments
 (0)