aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorZoltan Kiss <zkiss@ackmanndickenson.com>2015-05-13 12:22:53 -0500
committerZoltan Kiss <zkiss@ackmanndickenson.com>2015-05-13 12:22:53 -0500
commit81e644f26da84f2076d55c338d2e951150264b43 (patch)
tree4b0d4b139eb32cd464b64b5d606bdf5ef7e80061 /activesupport
parente54277a45da3c86fecdfa930663d7692fd083daa (diff)
downloadrails-81e644f26da84f2076d55c338d2e951150264b43.tar.gz
rails-81e644f26da84f2076d55c338d2e951150264b43.tar.bz2
rails-81e644f26da84f2076d55c338d2e951150264b43.zip
Minor comment fix. [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/integer/inquiry.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/integer/inquiry.rb b/activesupport/lib/active_support/core_ext/integer/inquiry.rb
index dc710b74d0..17a04d4d63 100644
--- a/activesupport/lib/active_support/core_ext/integer/inquiry.rb
+++ b/activesupport/lib/active_support/core_ext/integer/inquiry.rb
@@ -8,11 +8,11 @@ class Integer
self > 0
end
- # Returns true if the number is positive.
+ # Returns true if the number is negative.
#
- # -1.positive? # => true
- # 0.positive? # => false
- # 1.positive? # => false
+ # -1.negative? # => true
+ # 0.negative? # => false
+ # 1.negative? # => false
def negative?
self < 0
end