Skip to content

Commit c7e73ef

Browse files
jinmiaoluobradfitz
jinmiaoluo
authored andcommitted
net/url: update net/url split comment
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 <[email protected]>
1 parent 8bbfc51 commit c7e73ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/url/url.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ func getscheme(rawurl string) (scheme, path string, err error) {
452452
}
453453

454454
// split slices s into two substrings separated by the first occurrence of
455-
// sep. If cutc is true then sep is included with the second substring.
455+
// sep. If cutc is true then sep is excluded from the second substring.
456456
// If sep does not occur in s then s and the empty string is returned.
457457
func split(s string, sep byte, cutc bool) (string, string) {
458458
i := strings.IndexByte(s, sep)

0 commit comments

Comments
 (0)