Skip to content

Commit

Permalink
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/RubyEnumerable.java
Original file line number Diff line number Diff line change
@@ -1259,6 +1259,7 @@ public static IRubyObject min(ThreadContext context, IRubyObject self, final Blo
public static IRubyObject min(ThreadContext context, IRubyObject self, IRubyObject arg, final Block block) {
// TODO: Replace with an implementation (quickselect, etc) which requires O(k) memory rather than O(n) memory
RubyArray sorted = (RubyArray)sort(context, self, block);
if (arg.isNil()) return sorted.first();
return sorted.first(arg);
}

1 change: 0 additions & 1 deletion spec/tags/ruby/core/enumerable/min_tags.txt

This file was deleted.

0 comments on commit 7341634

Please sign in to comment.