diff --git a/src/runtime/debug/stack.go b/src/runtime/debug/stack.go index 1a8ba5dec1dc0..f3c212b666d6f 100644 --- a/src/runtime/debug/stack.go +++ b/src/runtime/debug/stack.go @@ -43,7 +43,7 @@ type CrashOptions struct{} // To disable this additional crash output, call SetCrashOutput(nil). // If called concurrently with a crash, some in-progress output may be written // to the old file even after an overriding SetCrashOutput returns. -func SetCrashOutput(f *os.File, opts CrashOptions) error { +func SetCrashOutput(f *os.File, opts ...CrashOptions) error { fd := ^uintptr(0) if f != nil { // The runtime will write to this file descriptor from