Closed DemiMarie closed 2 weeks ago
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
A typical function written in assembler should know which parameters are pointers and which are not. syscall.Syscall
is a special case because we don't want to have to write every possible variant. Still, I tweaked it to "functions like syscall.Syscall
" in https://go.dev/cl/596936. Thanks.
Change https://go.dev/cl/596936 mentions this issue: unsafe: say "functions like syscall.Syscall", not only Syscall
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