Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tour: contradiction in explanation #14344

Closed
mvescovo opened this issue Feb 16, 2016 · 1 comment
Closed

tour: contradiction in explanation #14344

mvescovo opened this issue Feb 16, 2016 · 1 comment

Comments

@mvescovo
Copy link

Context: https://tour.golang.org/methods/10

Hi. This slide seems to contradict the explanation on slide 9. i.e. how can type *T implement this interface? Only type T appears to implement the interface and yet there's no error when running the code.

I think this should be explained in the slide. Thanks.

@ianlancetaylor ianlancetaylor added this to the Unreleased milestone Feb 16, 2016
@ianlancetaylor
Copy link
Member

CC @adg @campoy

@adg adg self-assigned this Feb 16, 2016
@golang golang locked and limited conversation to collaborators Feb 28, 2017
gopherbot pushed a commit to golang/website that referenced this issue May 26, 2021
This example showed an interface being satisfied by *T when
the method is declared on T.

Fixes golang/go#14344

Change-Id: Ifcfd251d57323714539a90e17fdb1e74531e3424
Reviewed-on: https://go-review.googlesource.com/19531
Reviewed-by: Katrina Owen <katrina.owen@gmail.com>
Reviewed-by: Andrew Gerrand <adg@golang.org>
X-Tour-Commit: 9616eac69404c8d4aab36bf42624b08e2e8dffd2
@rsc rsc unassigned adg Jun 23, 2022
passionSeven added a commit to passionSeven/website that referenced this issue Oct 18, 2022
This example showed an interface being satisfied by *T when
the method is declared on T.

Fixes golang/go#14344

Change-Id: Ifcfd251d57323714539a90e17fdb1e74531e3424
Reviewed-on: https://go-review.googlesource.com/19531
Reviewed-by: Katrina Owen <katrina.owen@gmail.com>
Reviewed-by: Andrew Gerrand <adg@golang.org>
X-Tour-Commit: 9616eac69404c8d4aab36bf42624b08e2e8dffd2
KimuraDanaka119 added a commit to KimuraDanaka119/go-tour-jp that referenced this issue Jun 4, 2023
This example showed an interface being satisfied by *T when
the method is declared on T.

Fixes golang/go#14344

Change-Id: Ifcfd251d57323714539a90e17fdb1e74531e3424
Reviewed-on: https://go-review.googlesource.com/19531
Reviewed-by: Katrina Owen <katrina.owen@gmail.com>
Reviewed-by: Andrew Gerrand <adg@golang.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants