Commit 99ec0313 authored by Ian Lance Taylor's avatar Ian Lance Taylor

To get an empty string, return an empty string, not 0.

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=15858
CL=15860
parent 2a19d7dc
......@@ -87,7 +87,7 @@ export func split(s, sep string) *[]string {
// Join list of strings with separators between them.
export func join(a *[]string, sep string) string {
if len(a) == 0 {
return 0
return ""
}
if len(a) == 1 {
return a[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment