Skip to content

Commit 18625d9

Browse files
questocatgopherbot
authored andcommitted
runtime: fix incorrect comment
Fix incorrect comment for the runtime package. Change-Id: Iab889eff0e9c622afbed959d32b8b5f0ed0bfebf GitHub-Last-Rev: e958786 GitHub-Pull-Request: golang#57731 Reviewed-on: https://go-review.googlesource.com/c/go/+/461498 Reviewed-by: Keith Randall <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Keith Randall <[email protected]> Auto-Submit: Keith Randall <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent 6ad2716 commit 18625d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/runtime/mpagecache.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ type pageCache struct {
2121
scav uint64 // 64-bit bitmap representing scavenged pages (1 means scavenged)
2222
}
2323

24-
// empty returns true if the pageCache has any free pages, and false
25-
// otherwise.
24+
// empty reports whether the page cache has no free pages.
2625
func (c *pageCache) empty() bool {
2726
return c.cache == 0
2827
}

0 commit comments

Comments
 (0)