1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:20:22 -07: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:
Rahul Chaudhry 2016-01-28 16:33:35 -08:00 committed by Ian Lance Taylor
parent 6d61725c36
commit f5e309012b

View File

@ -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)
//