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
this is how type declarations work in Go. When you write:
var a, b int
both a and b are of type int. C also works this way: int a, b; declares both a and b of type int.
In Go, function signatures behave in the same way. s, substr string means that both s and substr are of type string. See https://tour.golang.org/basics/5 (and the tour in general) for an introduction to the language.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
The issue is with documentation of functions in the strings package.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Read the package strings documentation on https://golang.org/pkg/strings/
What did you expect to see?
Functions having arguments along with their types. A complete and accurate function definition.
What did you see instead?
19 functions have a first argument of type string, but do not show the type in the function declaration. These functions are:
The text was updated successfully, but these errors were encountered: