unsafe: document if syscall.Syscall
exemption to unsafe.Pointer
rules also applies to other assembly functions
#68301
Labels
Documentation
Issues describing a change to documentation.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Go version
1.22.5 (this is from
pkg.go.dev
)Output of
go env
in your module/workspace:What did you do?
Looked at the docs for
unsafe.Pointer
What did you see happen?
Point 4 in the list of allowed uses for
unsafe.Pointer
states:but the subsequent explanation implies that any function written in assembly can be used, including syscall.Syscall as a special case.
What did you expect to see?
Consistent documentation
The text was updated successfully, but these errors were encountered: