From 3412baaa029e10bb2fdf9cd596895b12e4a3bda1 Mon Sep 17 00:00:00 2001
From: Zhou Peng
Date: Mon, 26 Mar 2018 15:06:59 +0000
Subject: [PATCH] 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
---
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 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)
--
2.48.1