]> Cypherpunks.ru repositories - gostls13.git/commitdiff
unsafe: fix typo in documentation of valid Pointer->uintptr->Pointer conversions
authorRahul Chaudhry <rahulchaudhry@chromium.org>
Fri, 29 Jan 2016 00:33:35 +0000 (16:33 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 29 Jan 2016 00:41:27 +0000 (00:41 +0000)
Change-Id: Ib669d5241372326a46361ee096570e960b7a957f
Reviewed-on: https://go-review.googlesource.com/19082
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/unsafe/unsafe.go

index 33b31142192971272cd5d571f8612f624dd6b88e..532fa4aa2294560f95d6df0631dceb47ed612920 100644 (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)
 //