From: Zhou Peng
Date: Mon, 26 Mar 2018 15:06:59 +0000 (+0000)
Subject: runtime: fix comment typo
X-Git-Tag: go1.11beta1~1105
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3412baaa029e10bb2fdf9cd596895b12e4a3bda1;p=gostls13.git
runtime: fix comment typo
This was a typo mistake according to if cond and runtime/mheap.go:323
Change-Id: Id046d4afbfe0ea43cb29e1a9f400e1f130de221d
Reviewed-on: https://go-review.googlesource.com/102575
Reviewed-by: Austin Clements
---
diff --git a/src/runtime/mbitmap.go b/src/runtime/mbitmap.go
index afaec55569..38d994eb5a 100644
--- a/src/runtime/mbitmap.go
+++ b/src/runtime/mbitmap.go
@@ -257,7 +257,7 @@ func (s *mspan) objIndex(p uintptr) uintptr {
return 0
}
if s.baseMask != 0 {
- // s.baseMask is 0, elemsize is a power of two, so shift by s.divShift
+ // s.baseMask is non-0, elemsize is a power of two, so shift by s.divShift
return byteOffset >> s.divShift
}
return uintptr(((uint64(byteOffset) >> s.divShift) * uint64(s.divMul)) >> s.divShift2)