Fix typo maxDeepth -> maxDepth (#15574)

Signed-off-by: Junyoung, Sung <junyoung.sung@naverlabs.com>
This commit is contained in:
Junyoung, Sung 2021-09-13 22:23:31 +09:00 committed by GitHub
parent 8e1ffd022c
commit 251feea1fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ import (
"strings"
)
const maxDeepth = 50
const maxDepth = 50
type stack []uintptr
@ -28,7 +28,7 @@ func (s *stack) frames() StackFrames {
// newStack ...
func newStack() *stack {
var pcs [maxDeepth]uintptr
var pcs [maxDepth]uintptr
n := runtime.Callers(3, pcs[:])
var st stack = pcs[0:n]
return &st