]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix typos in comments
authorLizzzcai <lizzzcai1@gmail.com>
Mon, 29 Mar 2021 10:51:06 +0000 (18:51 +0800)
committerBen Shi <powerman1st@163.com>
Tue, 30 Mar 2021 03:31:44 +0000 (03:31 +0000)
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>

src/runtime/malloc.go

index 8435f965324355e83f6a13027d369455cb9ff70f..5e4974d40e77a592373af7a01bf227753e1739ea 100644 (file)
@@ -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)
                }
        }