]> Cypherpunks repositories - gostls13.git/commitdiff
net/url: update net/url split comment
authorjinmiaoluo <jinmiaoluo@icloud.com>
Thu, 21 Nov 2019 10:55:41 +0000 (10:55 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 21 Nov 2019 16:01:14 +0000 (16:01 +0000)
Fixes #35735

Change-Id: I4618ffcd1bcf9a7506468b9a1443bc4a2f7f3138
GitHub-Last-Rev: edaf780d3d8b4e01f3dd6750275ff50a39eb2113
GitHub-Pull-Request: golang/go#35736
Reviewed-on: https://go-review.googlesource.com/c/go/+/208297
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/url/url.go

index 6480d4b432242b7d90bb4c513f45066458ac04a5..2880e820c308226d847b19926877f1f18f54a987 100644 (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)