Skip to content

doc: strings: NewReplacer can panic #31233

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

Closed
ghost opened this issue Apr 3, 2019 · 1 comment
Closed

doc: strings: NewReplacer can panic #31233

ghost opened this issue Apr 3, 2019 · 1 comment
Labels
Documentation Issues describing a change to documentation.

Comments

@ghost
Copy link

ghost commented Apr 3, 2019

While the documentation does contain the phrase "string pairs", it's not obvious that the strings.NewReplacer function will panic if an odd number of strings are passed. This behaviour should be documented.

@gopherbot gopherbot added the Documentation Issues describing a change to documentation. label Apr 3, 2019
@gopherbot
Copy link
Contributor

Change https://golang.org/cl/170624 mentions this issue: strings: document that NewReplacer can panic

@golang golang locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Issues describing a change to documentation.
Projects
None yet
Development

No branches or pull requests

1 participant