Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
ecbcd816
Commit
ecbcd816
authored
Jan 20, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unsafe: add missing case to doc for Pointer
Fixes #1433. R=r, gri CC=golang-dev
https://golang.org/cl/3999047
parent
50fe459c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
unsafe.go
src/pkg/unsafe/unsafe.go
+3
-2
No files found.
src/pkg/unsafe/unsafe.go
View file @
ecbcd816
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment