Skip to content

Commit

Permalink
[fix #114] NSArray#reject returns the new array, not the receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Sansonetti authored and Watson1978 committed Jul 1, 2012
1 parent fa3b9df commit 9f33c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NSArray.m
Expand Up @@ -765,7 +765,7 @@
RETURN_ENUMERATOR(rcv, 0, 0);
NSMutableArray *result = [NSMutableArray arrayWithArray:rcv];
reject(result);
return (VALUE)rcv;
return (VALUE)result;
}

static VALUE
Expand Down

0 comments on commit 9f33c58

Please sign in to comment.