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

unsafe: type error mistake in docs #17818

Closed
go101 opened this issue Nov 6, 2016 · 2 comments
Closed

unsafe: type error mistake in docs #17818

go101 opened this issue Nov 6, 2016 · 2 comments

Comments

@go101
Copy link

go101 commented Nov 6, 2016

There are two occurrences of

hdr.Len = uintptr(n)

it doesn't compile.

@bradfitz
Copy link
Contributor

bradfitz commented Nov 6, 2016

Thanks.

Yeah, reflect.StructTag.Len is int, not uintptr.

@bradfitz bradfitz added this to the Go1.8 milestone Nov 6, 2016
@bradfitz bradfitz changed the title mistakes in unsafe package docs unsafe: type error mistake in docs Nov 6, 2016
@gopherbot
Copy link

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

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

3 participants