1
0
mirror of https://github.com/golang/go synced 2024-11-12 07:10:22 -07:00

remove implicit int -> string

R=ken
OCL=21020
CL=21020
This commit is contained in:
Russ Cox 2008-12-11 17:04:12 -08:00
parent bf67afc84e
commit a3155bdb09

View File

@ -131,7 +131,7 @@ func (j *Map) String() string {
export func Walk(j Json, path string) Json {
for len(path) > 0 {
var elem string;
if i := strings.index(path, '/'); i >= 0 {
if i := strings.index(path, "/"); i >= 0 {
elem = path[0:i];
path = path[i+1:len(path)];
} else {