From a925402b62c06d1cfe2b345cba0b11fa06b8401d Mon Sep 17 00:00:00 2001 From: cuishuang Date: Wed, 20 Nov 2024 21:56:27 +0800 Subject: all: fix some function names and typos in comment Change-Id: I07e7c8eaa5bd4bac0d576b2f2f4cd3f81b0b77a4 Reviewed-on: https://go-review.googlesource.com/c/go/+/630055 LUCI-TryBot-Result: Go LUCI Commit-Queue: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: Russ Cox Auto-Submit: Ian Lance Taylor --- src/runtime/debug/stack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/debug/stack.go') diff --git a/src/runtime/debug/stack.go b/src/runtime/debug/stack.go index d7a860b7dc..c4c3be141c 100644 --- a/src/runtime/debug/stack.go +++ b/src/runtime/debug/stack.go @@ -52,7 +52,7 @@ func SetCrashOutput(f *os.File, opts CrashOptions) error { // The runtime will write to this file descriptor from // low-level routines during a panic, possibly without // a G, so we must call f.Fd() eagerly. This creates a - // danger that that the file descriptor is no longer + // danger that the file descriptor is no longer // valid at the time of the write, because the caller // (incorrectly) called f.Close() and the kernel // reissued the fd in a later call to open(2), leading -- cgit v1.3