You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for unsafe.Pointer from the Packages pages
(http://golang.org/pkg/unsafe/#Pointer) says that the following special operations can
be done on it:
1) A pointer value of any type can be converted to a Pointer.
2) A uintptr can be converted to a Pointer.
3) A Pointer can be converted to a uintptr.
However, the Go language specification
(http://golang.org/doc/go_spec.html#Package_unsafe) says that:
Any pointer or value of type uintptr can be converted into a Pointer and vice versa.
So the documentation above is missing the case:
4) A Pointer can be converted to a pointer value of any type
The text was updated successfully, but these errors were encountered:
by spoon.reloaded:
The text was updated successfully, but these errors were encountered: