Skip to content

runtime.KeepAlive documentation code is incorrect #16299

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

Closed
efarrer opened this issue Jul 8, 2016 · 1 comment
Closed

runtime.KeepAlive documentation code is incorrect #16299

efarrer opened this issue Jul 8, 2016 · 1 comment

Comments

@efarrer
Copy link

efarrer commented Jul 8, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)? 1.7

  2. What operating system and processor architecture are you using (go env)? NA

  3. What did you do? NA

  4. What did you expect to see?
    The example code for the documentation/comment for runtime.KeepAlive has a typo. It should use the defined type "File", but the usage is mis-capitalized as "FILE".
    BAD: p := &FILE{d}
    GOOD: p := &File{d}

  5. What did you see instead?

    p := &FILE{d}

The affected file is: src/runtime/mfinal.go

@gopherbot
Copy link
Contributor

CL https://golang.org/cl/24830 mentions this issue.

@golang golang locked and limited conversation to collaborators Jul 8, 2017
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