internal: change split2() comment to be consistent with behavior (#2547)

This commit is contained in:
cheng wei
2019-01-08 02:14:06 +08:00
committed by Menghan Li
parent c71aa62423
commit 98de7e24ac

View File

@ -39,7 +39,7 @@ type ccResolverWrapper struct {
}
// split2 returns the values from strings.SplitN(s, sep, 2).
// If sep is not found, it returns ("", s, false) instead.
// If sep is not found, it returns ("", "", false) instead.
func split2(s, sep string) (string, string, bool) {
spl := strings.SplitN(s, sep, 2)
if len(spl) < 2 {