Commit e2a70231 by Jacob Vosmaer

rename variables

parent dfab4b3b
......@@ -12,10 +12,10 @@ func main() {
r := bufio.NewReader(os.Stdin)
w := bufio.NewWriter(os.Stdout)
var err error
var p []byte
for err == nil {
p, err = r.ReadBytes('\n')
var errR error
for errR == nil {
var p []byte
p, errR = r.ReadBytes('\n')
if len(p) == 0 {
break
}
......@@ -26,8 +26,8 @@ func main() {
log.Fatal(errW)
}
if err != io.EOF {
log.Fatal(err)
if errR != io.EOF {
log.Fatal(errR)
}
}
......
......@@ -11,10 +11,10 @@ func main() {
r := bufio.NewReader(os.Stdin)
w := bufio.NewWriter(os.Stdout)
var err error
var p []byte
for err == nil {
p, err = r.ReadBytes('\n')
var errR error
for errR == nil {
var p []byte
p, errR = r.ReadBytes('\n')
if len(p) == 0 {
break
}
......@@ -26,8 +26,8 @@ func main() {
log.Fatal(errW)
}
if err != io.EOF {
log.Fatal(err)
if errR != io.EOF {
log.Fatal(errR)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment