mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add information of incompatibility about Prime.prime? [Bug #7395]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1fd639393f
commit
212ea12e3a
3 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat May 24 00:25:34 2014 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
|
||||
|
||||
* NEWS: add information of incompatibility about Prime.prime?
|
||||
* lib/prime.rb: fix docs.
|
||||
|
||||
Fri May 23 21:36:28 2014 Josh Goebel <dreamer3@gmail.com>
|
||||
|
||||
* net/protocol.rb (using_each_crlf_line): fix SMTP dot-stuffing
|
||||
|
|
5
NEWS
5
NEWS
|
@ -111,6 +111,11 @@ with all sufficient information, see the ChangeLog file.
|
|||
* Removed because it conflicts to minitest 5, and it was just an wrapper
|
||||
of minitest 4. [Feature #9711]
|
||||
|
||||
* Prime
|
||||
* incompatible changes:
|
||||
* Prime.prime? now returns false for negative numbers. This method
|
||||
should not be used to know the number is composite or not. [Bug #7395]
|
||||
|
||||
=== Built-in global variables compatibility issues
|
||||
|
||||
=== C API updates
|
||||
|
|
|
@ -29,7 +29,7 @@ class Integer
|
|||
Prime.prime_division(self, generator)
|
||||
end
|
||||
|
||||
# Returns true if +self+ is a prime number, false for a composite.
|
||||
# Returns true if +self+ is a prime number, else returns false.
|
||||
def prime?
|
||||
Prime.prime?(self)
|
||||
end
|
||||
|
@ -150,7 +150,7 @@ class Prime
|
|||
end
|
||||
|
||||
|
||||
# Returns true if +value+ is prime, false for a composite.
|
||||
# Returns true if +value+ is prime number, else returns false.
|
||||
#
|
||||
# == Parameters
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue