You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs say that it will return the insertion index if the element is not found. 2 is the correct value because "bx" comes after "b" and before "c" and "b" is at index 1.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 darwin/amd64
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?GOROOT="/usr/local/Cellar/go/1.10/libexec"
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
code:
What did you expect to see?
it should return 5
What did you see instead?
The text was updated successfully, but these errors were encountered: