aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert PajÄ…k <pellared@hotmail.com>2024-12-06 20:54:07 +0000
committerGopher Robot <gobot@golang.org>2024-12-09 16:29:38 +0000
commit335437c0d7e4044d277e91edda5208c1d9df4977 (patch)
treec2840f00647aa674b394fd675168be43e8433e8e
parented80a58848789c5fd82f52a279dbc22e110989a9 (diff)
downloadgo-x-website-335437c0d7e4044d277e91edda5208c1d9df4977.tar.xz
_content/doc/go1compat: only struct types can have methods added
Change-Id: I2a97d2c95162af15f79735a0d495e7fcdbe4d435 GitHub-Last-Rev: 9f0db92f7966822248135540a846650e3e39c6e2 GitHub-Pull-Request: golang/website#303 Reviewed-on: https://go-review.googlesource.com/c/website/+/633555 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Carlos Amedee <carlos@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
-rw-r--r--_content/doc/go1compat.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/_content/doc/go1compat.html b/_content/doc/go1compat.html
index 8ca6116b..fa44a255 100644
--- a/_content/doc/go1compat.html
+++ b/_content/doc/go1compat.html
@@ -97,7 +97,7 @@ in a separate package should use the keyed notation.
<li>
Methods. As with struct fields, it may be necessary to add methods
-to types.
+to non-interface types.
Under some circumstances, such as when the type is embedded in
a struct along with another type,
the addition of the new method may break