diff options
| author | Emmanuel Odeke <emm.odeke@gmail.com> | 2016-10-09 22:45:17 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2016-10-19 03:25:30 +0000 |
| commit | f36e1adaa2c72d74dc669b596ea1c4df5e938def (patch) | |
| tree | 3404c0d617f987a68e2d7251aea48e974b9b7726 /src/syscall/exec_linux.go | |
| parent | ead08e91f6468ab1c35c250ec487935103c580f6 (diff) | |
| download | go-f36e1adaa2c72d74dc669b596ea1c4df5e938def.tar.xz | |
math/big: implement Float.Scan, type assert fmt interfaces to enforce docs
Implements Float.Scan which satisfies fmt.Scanner interface.
Also enforces docs' interface implementation claims with compile time
type assertions, that is:
+ Float always implements fmt.Formatter and fmt.Scanner
+ Int always implements fmt.Formatter and fmt.Scanner
+ Rat always implements fmt.Formatter
which will ensure that the API claims are strictly matched.
Also note that Float.Scan doesn't handle ±Inf.
Fixes #17391
Change-Id: I3d3dfbe7f602066975c7a7794fe25b4c645440ce
Reviewed-on: https://go-review.googlesource.com/30723
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/syscall/exec_linux.go')
0 files changed, 0 insertions, 0 deletions
