aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mbitmap.go
diff options
context:
space:
mode:
authorZhou Peng <p@ctriple.cn>2018-03-02 11:51:22 +0000
committerAlberto Donizetti <alb.donizetti@gmail.com>2018-03-02 12:03:30 +0000
commitb77aad089176ecab971d3a72f0357ed0abc81f4a (patch)
tree3d560676512afa8bdc9e4418038ea62c7e82d9d4 /src/runtime/mbitmap.go
parent3fca7306f44b49d64a65b9795eba62bfd71d7ba2 (diff)
downloadgo-b77aad089176ecab971d3a72f0357ed0abc81f4a.tar.gz
go-b77aad089176ecab971d3a72f0357ed0abc81f4a.zip
runtime: fix typo, func comments should start with function name
Change-Id: I289af4884583537639800e37928c22814d38cba9 Reviewed-on: https://go-review.googlesource.com/98115 Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
Diffstat (limited to 'src/runtime/mbitmap.go')
-rw-r--r--src/runtime/mbitmap.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mbitmap.go b/src/runtime/mbitmap.go
index 294e3739b7..afaec55569 100644
--- a/src/runtime/mbitmap.go
+++ b/src/runtime/mbitmap.go
@@ -170,7 +170,7 @@ func (s *mspan) allocBitsForIndex(allocBitIndex uintptr) markBits {
return markBits{bytep, mask, allocBitIndex}
}
-// refillaCache takes 8 bytes s.allocBits starting at whichByte
+// refillAllocCache takes 8 bytes s.allocBits starting at whichByte
// and negates them so that ctz (count trailing zeros) instructions
// can be used. It then places these 8 bytes into the cached 64 bit
// s.allocCache.