1
0
mirror of https://github.com/golang/go synced 2024-11-26 09:18:07 -07:00

runtime: fix typos in comments

Change-Id: Ia70e8bdc6d2cf1195d7a3b5d33f180ae2db73e29
Reviewed-on: https://go-review.googlesource.com/c/go/+/305369
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Ben Shi <powerman1st@163.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
Lizzzcai 2021-03-29 18:51:06 +08:00 committed by Ben Shi
parent 33945869c1
commit bb2fc21c3b

View File

@ -933,7 +933,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
} }
if inittrace.active && inittrace.id == getg().goid { if inittrace.active && inittrace.id == getg().goid {
// Init functions are executed sequentially in a single Go routine. // Init functions are executed sequentially in a single goroutine.
inittrace.allocs += 1 inittrace.allocs += 1
} }
} }
@ -1137,7 +1137,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
} }
if inittrace.active && inittrace.id == getg().goid { if inittrace.active && inittrace.id == getg().goid {
// Init functions are executed sequentially in a single Go routine. // Init functions are executed sequentially in a single goroutine.
inittrace.bytes += uint64(size) inittrace.bytes += uint64(size)
} }
} }