From bb2fc21c3b818c45fad23fdf5f8bd83bbc074dce Mon Sep 17 00:00:00 2001 From: Lizzzcai Date: Mon, 29 Mar 2021 18:51:06 +0800 Subject: [PATCH] runtime: fix typos in comments Change-Id: Ia70e8bdc6d2cf1195d7a3b5d33f180ae2db73e29 Reviewed-on: https://go-review.googlesource.com/c/go/+/305369 Reviewed-by: Emmanuel Odeke Reviewed-by: Ben Shi Run-TryBot: Emmanuel Odeke TryBot-Result: Go Bot --- src/runtime/malloc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index 8435f965324..5e4974d40e7 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) } }