Skip to content

Commit

Permalink
refactor: use bytes.ReplaceAll directly (#3455)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgbgbl committed Mar 1, 2023
1 parent 457fabd commit de1c4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recovery.go
Original file line number Diff line number Diff line change
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 de1c4ec

Please sign in to comment.