From e9587868db36d9dd466f52f7ffc5de09947a6b2f Mon Sep 17 00:00:00 2001 From: zhengchaopu Date: Wed, 11 Jan 2023 16:27:24 +0800 Subject: [PATCH] runtime: fix incorrect comment --- src/runtime/mpagecache.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runtime/mpagecache.go b/src/runtime/mpagecache.go index 40e463ffe35..5bc9c84408d 100644 --- a/src/runtime/mpagecache.go +++ b/src/runtime/mpagecache.go @@ -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 }