runtime: fix incorrect comment

This commit is contained in:
zhengchaopu 2023-01-11 16:27:24 +08:00
parent 25e600dd64
commit e9587868db
1 changed files with 1 additions and 2 deletions

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
}