Skip to content

Commit 9402592

Browse files
committed
Merge pull request rails#20142 from zoltankiss/comment_fix
Minor comment fix
2 parents e54277a + 81e644f commit 9402592

File tree

1 file changed

+4
-4
lines changed
  • activesupport/lib/active_support/core_ext/integer

1 file changed

+4
-4
lines changed

activesupport/lib/active_support/core_ext/integer/inquiry.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ def positive?
88
self > 0
99
end
1010

11-
# Returns true if the number is positive.
11+
# Returns true if the number is negative.
1212
#
13-
# -1.positive? # => true
14-
# 0.positive? # => false
15-
# 1.positive? # => false
13+
# -1.negative? # => true
14+
# 0.negative? # => false
15+
# 1.negative? # => false
1616
def negative?
1717
self < 0
1818
end

0 commit comments

Comments
 (0)