fix the typo

pull/23/head
astaxie 8 years ago
parent 763382e4ce
commit 5493f00cd0
  1. 3
      g_docs.go

@ -71,13 +71,14 @@ func init() {
}
}
func urlReplace(src string) string {
pt := strings.Split(src, "/")
for i, p := range pt {
if len(p) > 0 {
if p[0] == ':' {
pt[i] = "{" + p[1:] + "}"
} else if p[0] == "?" && p[1] == ":" {
} else if p[0] == '?' && p[1] == ':' {
pt[i] = "{" + p[2:] + "}"
}
}

Loading…
Cancel
Save