Skip to content

Commit 3e85bc9

Browse files
committed
Add TrimRuntime to example.
1 parent f823376 commit 3e85bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func DoTheThing() {
2323
log.Printf("%+v", c) // might log "pkg/path/source.go:10"
2424
log.Printf("%n", c) // might log "DoTheThing"
2525

26-
s := stack.Trace()
26+
s := stack.Trace().TrimRuntime()
2727
log.Print(s) // might log "[source.go:15 caller.go:42 main.go:14]"
2828
}
2929
```

0 commit comments

Comments
 (0)