]> Cypherpunks repositories - gostls13.git/commit
math/big: Rat.SetString to report error if input is not consumed entirely
authorRobert Griesemer <gri@golang.org>
Wed, 5 Oct 2016 22:01:15 +0000 (15:01 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 6 Oct 2016 20:37:01 +0000 (20:37 +0000)
commit95a6572b2b84e8cbfd821c4e5f774f20d37c007e
treef0c9e20e2208601812ac3d40f5a207a536b73149
parent4103fedf199dbc80c11455ffe75e3ecf89c77da5
math/big: Rat.SetString to report error if input is not consumed entirely

Also, document behavior explicitly for all SetString implementations.

Fixes #17001.

Change-Id: Iccc882b4bc7f8b61b6092f330e405c146a80dc98
Reviewed-on: https://go-review.googlesource.com/30472
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/math/big/floatconv.go
src/math/big/int.go
src/math/big/ratconv.go
src/math/big/ratconv_test.go