1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:30:25 -07:00
go/doc
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
..
articles doc/articles/wiki: highlight the use of _ warning 2018-02-14 04:54:37 +00:00
codewalk
devel doc: document Go 1.10.5 2018-11-02 19:43:46 +00:00
gopher doc/gopher: add model sheet 2018-07-18 04:00:10 +00:00
play
progs doc: improve the interface example in Effective Go 2018-11-26 05:08:25 +00:00
asm.html cmd/asm: rename R18 to R18_PLATFORM on ARM64 2018-11-06 20:10:12 +00:00
cmd.html doc: website: changed link for cover 2017-06-18 16:19:31 +00:00
code.html doc/code: drop mentions of GOPATH/pkg directory 2018-08-17 15:52:33 +00:00
conduct.html doc: update Code of Conduct 2018-05-23 20:16:46 +00:00
contrib.html doc: add go1.11 to contrib.html 2018-09-28 09:18:14 +00:00
contribute.html doc: improve language in contribute 2018-11-01 14:38:45 +00:00
debugging_with_gdb.html doc: remove "known bug" about global variables in debug_info. 2018-09-28 16:14:03 +00:00
diagnostics.html doc: update more stale pprof links 2018-06-17 21:35:39 +00:00
docs.html doc: update docs.html with new tour import path 2018-10-20 14:19:29 +00:00
editors.html doc: fix spelling of comp[]hensive to comp[r]ehensive 2018-10-12 22:59:05 +00:00
effective_go.html doc: improve the interface example in Effective Go 2018-11-26 05:08:25 +00:00
gccgo_contribute.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
gccgo_install.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
go1.1.html doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
go1.2.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
go1.3.html doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
go1.4.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
go1.5.html
go1.6.html doc: use HTTPS for clang.llvm.org link in go1.6.html 2018-06-12 15:03:24 +00:00
go1.7.html doc: use HTTPS for man.openbsd.org link in go1.7.html 2018-06-12 15:03:46 +00:00
go1.8.html doc: fix broken link in go1.8.html 2017-02-22 23:51:12 +00:00
go1.9.html doc/1.9: add mention of net/http.LocalAddrContextKey 2017-08-28 19:21:54 +00:00
go1.10.html doc: correct statement in go1.10 release notes 2018-04-23 22:21:48 +00:00
go1.11.html doc/go1.11, cmd/go: elaborate on new GOFLAGS environment variable 2018-09-14 21:45:02 +00:00
go1.12.html doc/go1.12: announce deprecation of support for FreeBSD 10.x 2018-11-20 08:58:36 +00:00
go1.html doc: change anchor URLs from golang.org/dl/ to /dl/ 2018-01-20 04:13:12 +00:00
go1compat.html doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
go_faq.html doc: replace command line usages of godoc with go doc 2018-10-31 20:08:50 +00:00
go_mem.html
go_spec.html doc/go_spec: tweak wording to avoid 'explicit assignment' misreading 2018-11-16 17:50:06 +00:00
go-logo-black.png
go-logo-blue.png
go-logo-white.png
help.html doc: add link to the Go Discord forum 2018-10-11 16:31:24 +00:00
ie.css
install-source.html doc: add GOMIPS64 to source installation docs 2018-09-05 10:04:57 +00:00
install.html doc: update the minimum support Windows version 2018-07-11 22:05:38 +00:00
root.html doc: update "Mac OS X", "OS X" to macOS; bump up to 10.10 2018-06-19 21:36:56 +00:00
security.html doc: update the primary security coordinator to filippo@ 2018-08-13 04:48:19 +00:00
share.png
tos.html