]> Cypherpunks repositories - gostls13.git/commitdiff
unsafe: add missing case to doc for Pointer
authorRuss Cox <rsc@golang.org>
Thu, 20 Jan 2011 17:50:50 +0000 (12:50 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 20 Jan 2011 17:50:50 +0000 (12:50 -0500)
Fixes #1433.

R=r, gri
CC=golang-dev
https://golang.org/cl/3999047

src/pkg/unsafe/unsafe.go

index fc583fe95b37045dbe3d8d498eb2bb838a1a2081..3a4e30c00ceae26f547ff62fb15bcc4631f705a1 100644 (file)
@@ -14,8 +14,9 @@ type ArbitraryType int
 // Pointer represents a pointer to an arbitrary type.  There are three special operations
 // available for type Pointer that are not available for other types.
 //     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.
+//     2) A Pointer can be converted to a pointer value of any type.
+//     3) A uintptr can be converted to a Pointer.
+//     4) 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.
 type Pointer *ArbitraryType