runtime: fix typo in mgcscavenge.go

recieved -> received
This commit is contained in:
Ikko Ashimine 2021-01-22 23:54:29 +09:00 committed by GitHub
parent 50cba0506f
commit a6068c1d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -562,7 +562,7 @@ func (p *pageAlloc) scavengeUnreserve(r addrRange, gen uint32) {
func (p *pageAlloc) scavengeOne(work addrRange, max uintptr, mayUnlock bool) (uintptr, addrRange) {
assertLockHeld(p.mheapLock)
// Defensively check if we've recieved an empty address range.
// Defensively check if we've received an empty address range.
// If so, just return.
if work.size() == 0 {
// Nothing to do.