Skip to content

Commit

Permalink
fix pointer receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe authored Jun 14, 2018
1 parent 53e5166 commit 0c022a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/debug/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (*HandlerT) WriteMemProfile(file string) error {

// Stacks returns a printed representation of the stacks of all goroutines.
func (*HandlerT) Stacks() string {
var buf bytes.Buffer
buf := new(bytes.Buffer)
pprof.Lookup("goroutine").WriteTo(buf, 2)
return buf.String()
}
Expand Down

0 comments on commit 0c022a7

Please sign in to comment.