From 53e5166eb04a3a58a752f60fb56e17bb0967c8c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 14 Jun 2018 15:26:51 +0300 Subject: [PATCH] fix typo --- internal/debug/api.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/debug/api.go b/internal/debug/api.go index 3118777eed..232834d8c0 100644 --- a/internal/debug/api.go +++ b/internal/debug/api.go @@ -191,9 +191,9 @@ func (*HandlerT) WriteMemProfile(file string) error { // Stacks returns a printed representation of the stacks of all goroutines. func (*HandlerT) Stacks() string { - var b bytes.Buffer - pprof.Lookup("goroutine").WriteTo(w, 2) - return b.String() + var buf bytes.Buffer + pprof.Lookup("goroutine").WriteTo(buf, 2) + return buf.String() } // FreeOSMemory returns unused memory to the OS.