1
0
mirror of https://github.com/golang/go synced 2024-11-16 18:04:39 -07:00
go/doc
Robert Griesemer a2a2c5b947 doc: update unsafe.Pointer rule in spec
The valid conversions consider the core types of operands, not just
their underlying type.

This also explains the valid arguments for unsafe.Slice which are
explained in terms of unsafe.Pointer conversions.

unsafe.SliceData simply refers to "slice argument" and we use
similar terminology elsewhere in the spec to denote values that
have a core type of slice (or any other type for that matter).
Leaving alone for now.

Fixes #64452.

Change-Id: I0eed3abbc0606f22358835e5d434f026fe0909c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/551379
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Bypass: Robert Griesemer <gri@google.com>
2023-12-20 02:18:50 +00:00
..
asm.html doc: document PCALIGN directive 2023-11-28 19:15:27 +00:00
go1.17_spec.html doc: in pre-generic spec, be explicit that it is not the current spec 2023-12-13 20:38:46 +00:00
go1.22.html doc: add html/template release note 2023-12-19 16:39:05 +00:00
go_mem.html doc: fix html tags 2023-08-03 14:43:29 +00:00
go_spec.html doc: update unsafe.Pointer rule in spec 2023-12-20 02:18:50 +00:00
godebug.md crypto/x509: gate Policies marshaling with GODEBUG 2023-12-11 23:29:45 +00:00