Skip to content

Commit

Permalink
Merge pull request #91 from alex0ptr/master
Browse files Browse the repository at this point in the history
Fix syntax in max
  • Loading branch information
Toshinori Minami authored Jan 4, 2017
2 parents 356f089 + e90e6c6 commit 7a73030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rx/operators/aggregates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def last_or_default(default_value = nil, &block)
# @return [Rx::Observable] The maximum element in an observable sequence.
def max(&block)
return map(&block).max if block_given?
max_by {x| x} .map {|x| x[0] }
max_by {|x| x} .map {|x| x[0] }
end

# Returns the elements in an observable sequence with the maximum key value.
Expand Down

0 comments on commit 7a73030

Please sign in to comment.