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
..
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00
2015-04-07 00:41:59 +00:00