]> Cypherpunks repositories - gostls13.git/commitdiff
unsafe: clarify wording in recent Alignof changes
authorIan Lance Taylor <iant@golang.org>
Wed, 27 Jan 2016 17:23:48 +0000 (09:23 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 27 Jan 2016 17:38:54 +0000 (17:38 +0000)
Change-Id: I595379d2f02b0a43735f0375758e4997ce3b64a7
Reviewed-on: https://go-review.googlesource.com/18986
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/unsafe/unsafe.go

index 3c8cd34ae205f818caa7ac7c4dccdb77d2f85a34..33b31142192971272cd5d571f8612f624dd6b88e 100644 (file)
@@ -187,8 +187,8 @@ func Offsetof(x ArbitraryType) uintptr
 // of a hypothetical variable v as if v was declared via var v = x.
 // It is the largest value m such that the address of v is always zero mod m.
 // It is the same as the value returned by reflect.TypeOf(x).Align().
-// As a special case, if s has a struct type and f is a field within that
-// struct, then Alignof(s.f) will return the required alignment of a field
-// of that type within a struct.  This case is the same as the value returned
-// by reflect.TypeOf(s.f).FieldAlign().
+// As a special case, if a variable s is of struct type and f is a field
+// within that struct, then Alignof(s.f) will return the required alignment
+// of a field of that type within a struct.  This case is the same as the
+// value returned by reflect.TypeOf(s.f).FieldAlign().
 func Alignof(x ArbitraryType) uintptr