]> Cypherpunks repositories - gostls13.git/commit
spec: every type has a method set (minor clarification)
authorRobert Griesemer <gri@golang.org>
Wed, 17 Feb 2021 05:05:08 +0000 (21:05 -0800)
committerRobert Griesemer <gri@golang.org>
Sat, 20 Feb 2021 00:01:22 +0000 (00:01 +0000)
commit078f08f0ee1eb6cb172fc1f9d53f34c5783e522d
treeb9eb0a3a6c74ac97789dd60cd515eb101548c56a
parent26713b5fefc158feb1f0f3d5d30627de226f7668
spec: every type has a method set (minor clarification)

The spec states that a type "may" have a method set associated with it.
Yet every type has a method set, which may be empty. This is clarified
later in the same paragraph. Be clear in the first sentence as well.

Per the suggestion from https://github.com/DQNEO.

Fixes #44318.

Change-Id: I6097b1c7062853e404b7fead56d18a7f9c576fc3
Reviewed-on: https://go-review.googlesource.com/c/go/+/292853
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go_spec.html