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

runtime: docfix countAlloc

fix typo in `countAlloc` doc
This commit is contained in:
Peter Feichtinger 2023-11-23 10:50:25 +01:00 committed by Peter Feichtinger
parent 3e67f46d4f
commit 6080d3c03b

View File

@ -441,7 +441,7 @@ func typeBitsBulkBarrier(typ *_type, dst, src, size uintptr) {
} }
// countAlloc returns the number of objects allocated in span s by // countAlloc returns the number of objects allocated in span s by
// scanning the allocation bitmap. // scanning the mark bitmap.
func (s *mspan) countAlloc() int { func (s *mspan) countAlloc() int {
count := 0 count := 0
bytes := divRoundUp(uintptr(s.nelems), 8) bytes := divRoundUp(uintptr(s.nelems), 8)