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:
Kyle Isom 2015-10-28 16:31:14 -07:00
parent 7bd65cea87
commit ffd7feb30a
1 changed files with 1 additions and 2 deletions

View File

@ -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])