]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: fix SetMantExp comment
authorDavid Crawshaw <crawshaw@golang.org>
Fri, 23 Oct 2015 16:21:02 +0000 (12:21 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Fri, 23 Oct 2015 16:38:27 +0000 (16:38 +0000)
Change-Id: If30cf9c94b58e18564db46c15c6f5cc14ec1a6fa
Reviewed-on: https://go-review.googlesource.com/16271
Reviewed-by: Robert Griesemer <gri@golang.org>
src/math/big/float.go

index b92d5cec2856d6996d282c23e528c5c5fee2fc79..ea2f516f844a46babc3ee3019c5212251e9e78bd 100644 (file)
@@ -298,7 +298,7 @@ func (z *Float) setExpAndRound(exp int64, sbit uint) {
 // not require 0.5 <= |mant| < 1.0. Specifically:
 //
 //     mant := new(Float)
-//     new(Float).SetMantExp(mant, x.SetMantExp(mant)).Cmp(x).Eql() is true
+//     new(Float).SetMantExp(mant, x.MantExp(mant)).Cmp(x) == 0
 //
 // Special cases are:
 //