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 {
|
||||
fmt.Println("[!] end < start, swapping values")
|
||||
fmt.Fprintln(os.Stderr, "[!] end < start, swapping values")
|
||||
tmp := end
|
||||
end = start
|
||||
start = tmp
|
||||
|
@ -83,7 +83,6 @@ func main() {
|
|||
return false
|
||||
}
|
||||
|
||||
fmt.Println(start)
|
||||
fmtStr += "\n"
|
||||
for i := start; !endFunc(i); i++ {
|
||||
fmt.Printf(fmtStr, i, lines[i])
|
||||
|
|
Loading…
Reference in New Issue