From 81e644f26da84f2076d55c338d2e951150264b43 Mon Sep 17 00:00:00 2001 From: Zoltan Kiss Date: Wed, 13 May 2015 12:22:53 -0500 Subject: Minor comment fix. [ci skip] --- activesupport/lib/active_support/core_ext/integer/inquiry.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'activesupport/lib') 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 -- cgit v1.2.3