]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix comment typo
authorZhou Peng <p@ctriple.cn>
Mon, 26 Mar 2018 15:06:59 +0000 (15:06 +0000)
committerAustin Clements <austin@google.com>
Mon, 26 Mar 2018 17:40:46 +0000 (17:40 +0000)
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 <austin@google.com>
src/runtime/mbitmap.go

index afaec5556916598697f8afc1a1b5e43804535e2e..38d994eb5a2bd461993caf9d0ef0ed4bb9fe0c73 100644 (file)
@@ -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)