3578bb32 by astaxie

fix bug substr

1 parent 40c7b47c
Showing 1 changed file with 1 additions and 1 deletions
......@@ -32,7 +32,7 @@ func Substr(s string, start, length int) string {
}
var end int
if (start + length) > (len(bt) - 1) {
end = len(bt) - 1
end = len(bt)
} else {
end = start + length
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!