diff options
author | Russ Cox <rsc@golang.org> | 2022-02-03 14:12:08 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2022-04-11 16:34:30 +0000 |
commit | 19309779ac5e2f5a2fd3cbb34421dafb2855ac21 (patch) | |
tree | 67dfd3e5d96250325e383183f95b6f5fe1968514 /src/unsafe | |
parent | 017933163ab6a2b254f0310c61b57db65cded92e (diff) | |
download | go-19309779ac5e2f5a2fd3cbb34421dafb2855ac21.tar.gz go-19309779ac5e2f5a2fd3cbb34421dafb2855ac21.zip |
all: gofmt main repo
[This CL is part of a sequence implementing the proposal #51082.
The design doc is at https://go.dev/s/godocfmt-design.]
Run the updated gofmt, which reformats doc comments,
on the main repository. Vendored files are excluded.
For #51082.
Change-Id: I7332f099b60f716295fb34719c98c04eb1a85407
Reviewed-on: https://go-review.googlesource.com/c/go/+/384268
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/unsafe')
-rw-r--r-- | src/unsafe/unsafe.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/unsafe/unsafe.go b/src/unsafe/unsafe.go index ae69dea4af..da15902b29 100644 --- a/src/unsafe/unsafe.go +++ b/src/unsafe/unsafe.go @@ -20,10 +20,11 @@ type IntegerType int // Pointer represents a pointer to an arbitrary type. There are four special operations // available for type Pointer that are not available for other types: -// - A pointer value of any type can be converted to a Pointer. -// - A Pointer can be converted to a pointer value of any type. -// - A uintptr can be converted to a Pointer. -// - A Pointer can be converted to a uintptr. +// - A pointer value of any type can be converted to a Pointer. +// - A Pointer can be converted to a pointer value of any type. +// - A uintptr can be converted to a Pointer. +// - A Pointer can be converted to a uintptr. +// // Pointer therefore allows a program to defeat the type system and read and write // arbitrary memory. It should be used with extreme care. // |