Skip to content

Commit

Permalink
refactor: use bytes.ReplaceAll directly
Browse files Browse the repository at this point in the history
  • Loading branch information
lgbgbl committed Jan 20, 2023
1 parent b2d4185 commit 25fc611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recovery.go
Expand Up @@ -164,7 +164,7 @@ func function(pc uintptr) []byte {
if period := bytes.Index(name, dot); period >= 0 {
name = name[period+1:]
}
name = bytes.Replace(name, centerDot, dot, -1)
name = bytes.ReplaceAll(name, centerDot, dot)
return name
}

Expand Down

0 comments on commit 25fc611

Please sign in to comment.