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
// TrimLeft returns a slice of the string s with all leading
// Unicode code points contained in cutset removed.
//
// To remove a prefix, use TrimPrefix instead.
In other word, cutset is interpreted as a character set, and the longest prefix of s whose characters are all in cutset is chosen and trimmed.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
https://go.dev/play/p/Abefs5j3At0
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/Abefs5j3At0
What did you expect to see?
TrimLeft
output not expected in above cases. Output seems bit different when string containssu
substring.What did you see instead?
Please see above snippet.
The text was updated successfully, but these errors were encountered: