From 6080d3c03ba6cacb1874af9724cfeb7cae27b78f Mon Sep 17 00:00:00 2001 From: Peter Feichtinger Date: Thu, 23 Nov 2023 10:50:25 +0100 Subject: [PATCH] runtime: docfix countAlloc fix typo in `countAlloc` doc --- src/runtime/mbitmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/mbitmap.go b/src/runtime/mbitmap.go index a0402d2933b..cdd1c5fc3b5 100644 --- a/src/runtime/mbitmap.go +++ b/src/runtime/mbitmap.go @@ -441,7 +441,7 @@ func typeBitsBulkBarrier(typ *_type, dst, src, size uintptr) { } // countAlloc returns the number of objects allocated in span s by -// scanning the allocation bitmap. +// scanning the mark bitmap. func (s *mspan) countAlloc() int { count := 0 bytes := divRoundUp(uintptr(s.nelems), 8)