aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance/instance.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-12-18 09:39:38 +0100
committerDmitry Vyukov <dvyukov@google.com>2025-12-18 09:06:55 +0000
commitedf016078e61c6481aedf10bd098258647a6ded4 (patch)
tree5af1ded960f9ea3f9ed6ffa9311d164e2992222d /pkg/instance/instance.go
parenta066d2bc4b02c5b24dfc01dae9d50e32f3ed6c0e (diff)
pkg/instance: improve comment about returned errors
We return pointers rather than structs directly, this is important if the errors are casted.
Diffstat (limited to 'pkg/instance/instance.go')
-rw-r--r--pkg/instance/instance.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go
index df0d74b98..1d0adc5d6 100644
--- a/pkg/instance/instance.go
+++ b/pkg/instance/instance.go
@@ -256,8 +256,8 @@ func (err *CrashError) Error() string {
}
// Test boots numVMs VMs, tests basic kernel operation, and optionally tests the provided reproducer.
-// TestError is returned if there is a problem with kernel/image (crash, reboot loop, etc).
-// CrashError is returned if the reproducer crashes kernel.
+// *TestError is returned if there is a problem with kernel/image (crash, reboot loop, etc).
+// *CrashError is returned if the reproducer crashes kernel.
func (env *env) Test(numVMs int, reproSyz, reproOpts, reproC []byte) ([]EnvTestResult, error) {
if env.testSem != nil {
env.testSem.Wait()