Adjust output.
* Remove extraneous debug output. * If the start and end are swapped, print the message to standard error, not standard output.
This commit is contained in:
parent
7bd65cea87
commit
ffd7feb30a
|
@ -63,7 +63,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if end < start {
|
if end < start {
|
||||||
fmt.Println("[!] end < start, swapping values")
|
fmt.Fprintln(os.Stderr, "[!] end < start, swapping values")
|
||||||
tmp := end
|
tmp := end
|
||||||
end = start
|
end = start
|
||||||
start = tmp
|
start = tmp
|
||||||
|
@ -83,7 +83,6 @@ func main() {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(start)
|
|
||||||
fmtStr += "\n"
|
fmtStr += "\n"
|
||||||
for i := start; !endFunc(i); i++ {
|
for i := start; !endFunc(i); i++ {
|
||||||
fmt.Printf(fmtStr, i, lines[i])
|
fmt.Printf(fmtStr, i, lines[i])
|
||||||
|
|
Loading…
Reference in New Issue