Skip to content

Commit

Permalink
runtime/debug: convert the options parameter of SetCrashOutput to var…
Browse files Browse the repository at this point in the history
…iadic
  • Loading branch information
Stavrospanakakis committed May 7, 2024
1 parent a8552c7 commit 0844833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/debug/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0844833

Please sign in to comment.