From c895fa244150ab549d67b1d96eb4eb78e322b6f3 Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Thu, 22 Sep 2022 18:53:30 -0700 Subject: [PATCH] Update `machine.mapPhysical`'s docstring for `panic` -> `throw`. PiperOrigin-RevId: 476249730 --- pkg/sentry/platform/kvm/machine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sentry/platform/kvm/machine.go b/pkg/sentry/platform/kvm/machine.go index 4aad65cbf..93b3e2e72 100644 --- a/pkg/sentry/platform/kvm/machine.go +++ b/pkg/sentry/platform/kvm/machine.go @@ -372,7 +372,7 @@ func (m *machine) hasSlot(physical uintptr) bool { // mapPhysical checks for the mapping of a physical range, and installs one if // not available. This attempts to be efficient for calls in the hot path. // -// This panics on error. +// This throws on error. // //go:nosplit func (m *machine) mapPhysical(physical, length uintptr, phyRegions []physicalRegion) {