refactor: use bytes.ReplaceAll directly (#3455)

This commit is contained in:
lgbgbl 2023-03-01 13:57:15 +08:00 committed by GitHub
parent 457fabd7e1
commit de1c4ec546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}