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

runtime: two implementations of hasprefix #25688

Closed
ghost opened this issue Jun 1, 2018 · 1 comment
Closed

runtime: two implementations of hasprefix #25688

ghost opened this issue Jun 1, 2018 · 1 comment
Milestone

Comments

@ghost
Copy link

ghost commented Jun 1, 2018

runtime defines hasprefix(string, string) bool in string.go and hasPrefix(string, string) bool in type.go. They have identical implementations.

I do not know how they are used, but I imagine that either (a) one should be removed in favour of the other, or (b) document why both need to exist.

@martisch martisch self-assigned this Jun 1, 2018
@martisch martisch added this to the Go1.12 milestone Jun 1, 2018
@martisch martisch added NeedsFix The path to resolution is known, but the work has not been done. and removed NeedsFix The path to resolution is known, but the work has not been done. labels Jun 1, 2018
@gopherbot
Copy link

Change https://golang.org/cl/115835 mentions this issue: runtime: replace calls to hasprefix with hasPrefix

@golang golang locked and limited conversation to collaborators Aug 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants