diff options
| author | Alberto Donizetti <alb.donizetti@gmail.com> | 2016-09-24 15:53:09 +0200 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2016-09-26 18:30:35 +0000 |
| commit | 6bcd258095da307dc60ffe1b45b014c0be849dc9 (patch) | |
| tree | e991a88920645a65a860fccb154bb56fbac64c0a /src/math/big | |
| parent | ac24388e5e5bdc129451c074a349a982e1d55ffa (diff) | |
| download | go-6bcd258095da307dc60ffe1b45b014c0be849dc9.tar.xz | |
math/big: better SetFloat64 example in doc
Fixes #17221
Change-Id: Idaa2af6b8646651ea72195671d1a4b5c370a5a22
Reviewed-on: https://go-review.googlesource.com/29711
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/math/big')
| -rw-r--r-- | src/math/big/doc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/big/doc.go b/src/math/big/doc.go index a3c23751ba..65ed019b74 100644 --- a/src/math/big/doc.go +++ b/src/math/big/doc.go @@ -31,7 +31,7 @@ setters, for instance: var z1 Int z1.SetUint64(123) // z1 := 123 - z2 := new(Rat).SetFloat64(1.2) // z2 := 6/5 + z2 := new(Rat).SetFloat64(1.25) // z2 := 5/4 z3 := new(Float).SetInt(z1) // z3 := 123.0 Setters, numeric operations and predicates are represented as methods of |
