Skip to content

Commit

Permalink
use mx variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin committed Dec 22, 2024
1 parent f34275e commit 99d85a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/stack/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"strings"
)

// Frames returns at most m callstack Frames, starting with its caller and
// Frames returns at most mx callstack Frames, starting with its caller and
// skipping skip Frames.
func Frames(skip, m int) []runtime.Frame {
pc := make([]uintptr, m)
func Frames(skip, mx int) []runtime.Frame {
pc := make([]uintptr, mx)
n := runtime.Callers(skip+2, pc)
if n == 0 {
return nil
Expand Down

0 comments on commit 99d85a5

Please sign in to comment.