summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index db64348..30c9ebf 100644
--- a/main.go
+++ b/main.go
@@ -133,8 +133,8 @@ func getLeakProfile(leakySnippet func()) {
prof.WriteTo(&content, 2)
// Ignore non leaked goroutines
- leaks := strings.Split(content.String(), "\n\n")
- for _, leak := range leaks {
+ leaks := strings.SplitSeq(content.String(), "\n\n")
+ for leak := range leaks {
if strings.Contains(leak, "(leaked)") {
fmt.Println(leak + "\n")
}