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

typo in Effective Go means code example does not compile #218

Closed
gopherbot opened this issue Nov 16, 2009 · 2 comments
Closed

typo in Effective Go means code example does not compile #218

gopherbot opened this issue Nov 16, 2009 · 2 comments

Comments

@gopherbot
Copy link
Contributor

by michael.elkins:

In the "Effective Go" document in the section describing the "switch"
command, the following code excerpt is used:

switch t := interfaceValue.(type) {
default:
    fmt.Printf("unexpected type %T", type);  // %T prints type

This code does not compile.  I believe that last line should be:

    fmt.Printf("unexpected type %T", t);  // %T prints type
@agl
Copy link
Contributor

agl commented Nov 16, 2009

Comment 1:

http://golang.org/cl/155067

Status changed to Started.

@agl
Copy link
Contributor

agl commented Nov 16, 2009

Comment 2:

This issue was closed by revision 4085364.

Status changed to Fixed.

Merged into issue #-.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
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

2 participants