diff options
| author | Kaiya <xiongkaiya@gmail.com> | 2023-04-06 15:01:34 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-06 15:31:26 +0000 |
| commit | 2face96fc427989bbc8b2bae197755d4ebd93f75 (patch) | |
| tree | 7161e470b1e2e7f9ff2f75d2a73261bf9155e873 /src | |
| parent | ef9c211de82d690f4d93a5146b01b800fca077a9 (diff) | |
| download | go-2face96fc427989bbc8b2bae197755d4ebd93f75.tar.xz | |
runtime: fix typo in traceback.go
Change-Id: I3515453c3b4310b9fc635324d75c872a01501604
Reviewed-on: https://go-review.googlesource.com/c/go/+/482735
Auto-Submit: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/traceback.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go index eb5e67eb81..7e7c033d15 100644 --- a/src/runtime/traceback.go +++ b/src/runtime/traceback.go @@ -847,7 +847,7 @@ func traceback1(pc, sp, lr uintptr, gp *g, flags unwindFlags) { // Rejected approaches: // // - Do two passes where the first pass just counts and the second pass does - // all the printing. This is undesireable if the stack is corrupted or changing + // all the printing. This is undesirable if the stack is corrupted or changing // because we won't see a partial stack if we panic. // // - Keep a ring buffer of the last N logical frames and use this to print @@ -912,7 +912,7 @@ func traceback1(pc, sp, lr uintptr, gp *g, flags unwindFlags) { // logical frames, after which it prints at most "max" logical frames. It // returns n, which is the number of logical frames skipped and printed, and // lastN, which is the number of logical frames skipped or printed just in the -// phyiscal frame that u references. +// physical frame that u references. func traceback2(u *unwinder, showRuntime bool, skip, max int) (n, lastN int) { // commitFrame commits to a logical frame and returns whether this frame // should be printed and whether iteration should stop. |
