1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

lib/mathn.rb: [DOC] nodoc internal Math.rsqrt

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
stomar 2017-02-28 10:41:03 +00:00
parent a0da6f0dfe
commit 98374b99dd

View file

@ -117,7 +117,7 @@ module Math
# Compute square root of a non negative number. This method is
# internally used by +Math.sqrt+.
def rsqrt(a)
def rsqrt(a) # :nodoc:
if a.kind_of?(Float)
sqrt!(a)
elsif a.kind_of?(Rational)