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
Listen returning of " a slice of the string" seems to be this []string but instead the function is returning simple "string" as in its function signature. I think I'm looking at a grammatical mistake.
If it were to return a slice of a string then it would be
func Trim(s, cutset string) []string
But the syntax is
func Trim(s, cutset string) string
What is the URL of the page with the issue?
URL : https://pkg.go.dev/strings#Trim
What is your user agent?
Mozilla/5.0 (Linux; Android 11; SM-M315F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Mobile Safari/537.36
Screenshot
What did you do?
The trim function outputs string but in the text about it it's mention that it outputs slice of the string.
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: