1
0
mirror of https://github.com/golang/go synced 2024-11-26 17:56:55 -07:00

cmd/compile/internal/abi: fix typo in comment

Change-Id: I196045314b2b0e908d7b31ac0cea5b25404f3ee0
Reviewed-on: https://go-review.googlesource.com/c/go/+/325249
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Trust: Keith Randall <khr@golang.org>
This commit is contained in:
sryoya 2021-06-05 03:12:03 +09:00 committed by Keith Randall
parent 831f9376d8
commit 95939e8de7

View File

@ -449,7 +449,7 @@ func (config *ABIConfig) ABIAnalyze(t *types.Type, setNname bool) *ABIParamResul
// parameterUpdateMu protects the Offset field of function/method parameters (a subset of structure Fields) // parameterUpdateMu protects the Offset field of function/method parameters (a subset of structure Fields)
var parameterUpdateMu sync.Mutex var parameterUpdateMu sync.Mutex
// FieldOffsetOf returns a concurency-safe version of f.Offset // FieldOffsetOf returns a concurrency-safe version of f.Offset
func FieldOffsetOf(f *types.Field) int64 { func FieldOffsetOf(f *types.Field) int64 {
parameterUpdateMu.Lock() parameterUpdateMu.Lock()
defer parameterUpdateMu.Unlock() defer parameterUpdateMu.Unlock()