Commit f5e30901 authored by Rahul Chaudhry's avatar Rahul Chaudhry Committed by Ian Lance Taylor

unsafe: fix typo in documentation of valid Pointer->uintptr->Pointer conversions

Change-Id: Ib669d5241372326a46361ee096570e960b7a957f
Reviewed-on: https://go-review.googlesource.com/19082Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 6d61725c
......@@ -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)
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment