Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace strings.Replace with strings.ReplaceAll #978

Merged
merged 1 commit into from May 15, 2022
Merged

refactor: replace strings.Replace with strings.ReplaceAll #978

merged 1 commit into from May 15, 2022

Commits on May 15, 2022

  1. refactor: replace strings.Replace with strings.ReplaceAll

    strings.ReplaceAll(s, old, new) is a wrapper function for
    strings.Replace(s, old, new, -1). But strings.ReplaceAll is more
    readable and removes the hardcoded -1.
    
    Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
    Juneezee committed May 15, 2022
    Configuration menu
    Copy the full SHA
    7584ea3 View commit details
    Browse the repository at this point in the history