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:
parent
bf67afc84e
commit
a3155bdb09
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user