diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-02-14 13:23:51 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-02-14 13:23:51 +0100 |
commit | 758ff64c69e34965f8af5b2d6ffd65e8d7ab2150 (patch) | |
tree | 6d6b34f8c678862fe9b56c945a7b63f68502c245 /src/pkg/unsafe/unsafe.go | |
parent | 3e45412327a2654a77944249962b3652e6142299 (diff) | |
download | golang-758ff64c69e34965f8af5b2d6ffd65e8d7ab2150.tar.gz |
Imported Upstream version 2011-02-01.1upstream/2011-02-01.1
Diffstat (limited to 'src/pkg/unsafe/unsafe.go')
-rw-r--r-- | src/pkg/unsafe/unsafe.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pkg/unsafe/unsafe.go b/src/pkg/unsafe/unsafe.go index fc583fe95..3a4e30c00 100644 --- a/src/pkg/unsafe/unsafe.go +++ b/src/pkg/unsafe/unsafe.go @@ -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 |