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:
ayumin 2014-05-23 15:32:19 +00:00
Родитель 1fd639393f
Коммит 212ea12e3a
3 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -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
Просмотреть файл

@ -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
#