From 18625d9becc559e65ab5b39aa5d27ae6eb7b00aa Mon Sep 17 00:00:00 2001 From: zhengchaopu Date: Wed, 11 Jan 2023 08:31:27 +0000 Subject: [PATCH] runtime: fix incorrect comment Fix incorrect comment for the runtime package. Change-Id: Iab889eff0e9c622afbed959d32b8b5f0ed0bfebf GitHub-Last-Rev: e9587868db36d9dd466f52f7ffc5de09947a6b2f GitHub-Pull-Request: golang/go#57731 Reviewed-on: https://go-review.googlesource.com/c/go/+/461498 Reviewed-by: Keith Randall TryBot-Result: Gopher Robot Run-TryBot: Keith Randall Auto-Submit: Keith Randall Reviewed-by: Ian Lance Taylor Reviewed-by: Keith Randall --- 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 5bad4f789a..5bc9c84408 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 any free pages, and false -// otherwise. +// empty reports whether the page cache has no free pages. func (c *pageCache) empty() bool { return c.cache == 0 } -- 2.50.0