This commit is contained in:
WAKAYAMA shirou 2014-04-23 10:33:55 +09:00
parent 66c5476fb7
commit 5153f22c9c
1 changed files with 3 additions and 3 deletions

View File

@ -35,12 +35,12 @@ func ReadLines(filename string) ([]string, error) {
func byteToString(orig []byte) string { func byteToString(orig []byte) string {
n := -1 n := -1
l := -1 l := -1
for i, b := range orig{ for i, b := range orig {
// skip left side null // skip left side null
if l == -1 && b == 0{ if l == -1 && b == 0 {
continue continue
} }
if l == -1{ if l == -1 {
l = i l = i
} }