1
0
mirror of https://github.com/golang/go synced 2024-11-23 18:50:05 -07:00

runtime: fix incorrect comment

This commit is contained in:
zhengchaopu 2023-01-11 16:27:24 +08:00
parent 25e600dd64
commit e9587868db

View File

@ -21,8 +21,7 @@ type pageCache struct {
scav uint64 // 64-bit bitmap representing scavenged pages (1 means scavenged)
}
// empty returns true if the pageCache has no free pages, and false
// otherwise.
// empty reports whether the page cache has no free pages.
func (c *pageCache) empty() bool {
return c.cache == 0
}