Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/pkg/unsafe/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
...
@@ -14,8 +14,9 @@ type ArbitraryType int
// Pointer represents a pointer to an arbitrary type. There are three special operations
// Pointer represents a pointer to an arbitrary type. There are three special operations
// available for type Pointer that are not available for other types.
// available for type Pointer that are not available for other types.
// 1) A pointer value of any type can be converted to a Pointer.
// 1) A pointer value of any type can be converted to a Pointer.
// 2) A uintptr can be converted to a Pointer.
// 2) A Pointer can be converted to a pointer value of any type.
// 3) A Pointer can be converted to a uintptr.
// 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
// Pointer therefore allows a program to defeat the type system and read and write
// arbitrary memory. It should be used with extreme care.
// arbitrary memory. It should be used with extreme care.
type
Pointer
*
ArbitraryType
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