From a22cb5cabe2bcc8ed02c43a66a1bd319cb28e89c Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Wed, 15 May 2024 17:41:56 -0400 Subject: runtime/debug: eliminate temporary variadicity from SetCrashOutput Updates #67182 Change-Id: I33fc8c515f4a9d120262ba30f61aea80ede5e9f8 Reviewed-on: https://go-review.googlesource.com/c/go/+/585420 LUCI-TryBot-Result: Go LUCI Reviewed-by: Austin Clements --- src/runtime/debug/example_monitor_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/debug/example_monitor_test.go') diff --git a/src/runtime/debug/example_monitor_test.go b/src/runtime/debug/example_monitor_test.go index 5a1f4e1417..b077e7adb3 100644 --- a/src/runtime/debug/example_monitor_test.go +++ b/src/runtime/debug/example_monitor_test.go @@ -91,7 +91,7 @@ func monitor() { if err != nil { log.Fatalf("StdinPipe: %v", err) } - debug.SetCrashOutput(pipe.(*os.File)) // (this conversion is safe) + debug.SetCrashOutput(pipe.(*os.File), debug.CrashOptions{}) // (this conversion is safe) if err := cmd.Start(); err != nil { log.Fatalf("can't start monitor: %v", err) } -- cgit v1.3