Skip to content

Commit c418da3

Browse files
PeterFeichtgopherbot
authored andcommitted
runtime: docfix countAlloc
fix typo in `countAlloc` doc Change-Id: I9f0752412b7a7dfae4915870edeab4ac52e38b2d GitHub-Last-Rev: 6080d3c GitHub-Pull-Request: #64357 Reviewed-on: https://go-review.googlesource.com/c/go/+/544755 Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Hiro Hamada <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Auto-Submit: Michael Knyszek <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent b9a4eaa commit c418da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/mbitmap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ func typeBitsBulkBarrier(typ *_type, dst, src, size uintptr) {
441441
}
442442

443443
// countAlloc returns the number of objects allocated in span s by
444-
// scanning the allocation bitmap.
444+
// scanning the mark bitmap.
445445
func (s *mspan) countAlloc() int {
446446
count := 0
447447
bytes := divRoundUp(uintptr(s.nelems), 8)

0 commit comments

Comments
 (0)