net/url: update net/url split comment

Fixes #35735
This commit is contained in:
jinmiaoluo 2019-11-21 18:22:24 +08:00
parent 39a9cb4b5d
commit edaf780d3d
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ func getscheme(rawurl string) (scheme, path string, err error) {
}
// split slices s into two substrings separated by the first occurrence of
// sep. If cutc is true then sep is included with the second substring.
// sep. If cutc is true then sep is excluded from the second substring.
// If sep does not occur in s then s and the empty string is returned.
func split(s string, sep byte, cutc bool) (string, string) {
i := strings.IndexByte(s, sep)