1
0
mirror of https://github.com/golang/go synced 2024-11-17 14:14:56 -07:00
go/doc/progs
Rob Pike cf20540880 doc: improve the interface example in Effective Go
The String method is n-squared and overwrites its receiver.
Fix both issues, with only a slight loss of clarity.

Fixes #28773

Change-Id: I588f69d4cbd72931b28b984671512834473bd466
Reviewed-on: https://go-review.googlesource.com/c/151217
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-11-26 05:08:25 +00:00
..
cgo1.go
cgo2.go
cgo3.go
cgo4.go
defer2.go
defer.go
eff_bytesize.go
eff_qr.go
eff_sequence.go doc: improve the interface example in Effective Go 2018-11-26 05:08:25 +00:00
eff_unused1.go
eff_unused2.go
error2.go net/http,doc: use HTTP status code constants where applicable 2018-02-26 05:04:31 +00:00
error3.go net/http,doc: use HTTP status code constants where applicable 2018-02-26 05:04:31 +00:00
error4.go
error.go
go1.go
gobs1.go
gobs2.go
image_draw.go
image_package1.go
image_package2.go
image_package3.go
image_package4.go
image_package5.go
image_package6.go
interface2.go
interface.go
json1.go all: spell "marshal" and "unmarshal" consistently 2016-11-12 00:13:35 +00:00
json2.go
json3.go all: spell "marshal" and "unmarshal" consistently 2016-11-12 00:13:35 +00:00
json4.go all: spell "marshal" and "unmarshal" consistently 2016-11-12 00:13:35 +00:00
json5.go
run.go cmd/cgo: support niladic function-like macros 2017-08-30 18:28:58 +00:00
slices.go
timeout1.go
timeout2.go