Skip to content

Commit

Permalink
net/url: update net/url split comment
Browse files Browse the repository at this point in the history
Fixes #35735

Change-Id: I4618ffcd1bcf9a7506468b9a1443bc4a2f7f3138
GitHub-Last-Rev: edaf780
GitHub-Pull-Request: #35736
Reviewed-on: https://go-review.googlesource.com/c/go/+/208297
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
jinmiaoluo authored and bradfitz committed Nov 21, 2019
1 parent 8bbfc51 commit c7e73ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c7e73ef

Please sign in to comment.