diff options
| author | Lizzzcai <lizzzcai1@gmail.com> | 2021-03-29 18:51:06 +0800 |
|---|---|---|
| committer | Ben Shi <powerman1st@163.com> | 2021-03-30 03:31:44 +0000 |
| commit | bb2fc21c3b818c45fad23fdf5f8bd83bbc074dce (patch) | |
| tree | 1efead8086e482c408fa2ca9fcc26c2d16c099be /src/runtime/malloc.go | |
| parent | 33945869c12ce92933714426471ce4f5c4ec7b6b (diff) | |
| download | go-bb2fc21c3b818c45fad23fdf5f8bd83bbc074dce.tar.xz | |
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>
Diffstat (limited to 'src/runtime/malloc.go')
| -rw-r--r-- | src/runtime/malloc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index 8435f96532..5e4974d40e 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -933,7 +933,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer { } 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 } } @@ -1137,7 +1137,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer { } 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) } } |
