mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
unsafe: fix typo in documentation of valid Pointer->uintptr->Pointer conversions
Change-Id: Ib669d5241372326a46361ee096570e960b7a957f Reviewed-on: https://go-review.googlesource.com/19082 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
6d61725c36
commit
f5e309012b
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ type ArbitraryType int
|
|||
// (3) Conversion of a Pointer to a uintptr and back, with arithmetic.
|
||||
//
|
||||
// If p points into an allocated object, it can be advanced through the object
|
||||
// by conversion to uintptr, addition of an offset, and conversion back to uintptr.
|
||||
// by conversion to uintptr, addition of an offset, and conversion back to Pointer.
|
||||
//
|
||||
// p = unsafe.Pointer(uintptr(p) + offset)
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue