From: Oling Cat Date: Fri, 22 Mar 2013 03:54:20 +0000 (+1100) Subject: math: remove repeated comment. X-Git-Tag: go1.1rc2~387 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=79ae1ad48911ac6d36105cd5ec38247892f8a10b;p=gostls13.git math: remove repeated comment. R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/7835046 --- diff --git a/src/pkg/math/sqrt.go b/src/pkg/math/sqrt.go index 21336df2ae..1bd4437f15 100644 --- a/src/pkg/math/sqrt.go +++ b/src/pkg/math/sqrt.go @@ -4,15 +4,6 @@ package math -// Sqrt returns the square root of x. -// -// Special cases are: -// Sqrt(+Inf) = +Inf -// Sqrt(±0) = ±0 -// Sqrt(x < 0) = NaN -// Sqrt(NaN) = NaN -func Sqrt(x float64) float64 - // The original C code and the long comment below are // from FreeBSD's /usr/src/lib/msun/src/e_sqrt.c and // came with this notice. The go code is a simplified @@ -98,6 +89,8 @@ func Sqrt(x float64) float64 // Sqrt(±0) = ±0 // Sqrt(x < 0) = NaN // Sqrt(NaN) = NaN +func Sqrt(x float64) float64 + func sqrt(x float64) float64 { // special cases switch {