Skip to content

Commit 82e7f55

Browse files
committed
Improved comments
1 parent 81790ab commit 82e7f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BufIO/BufferedIO.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func ReadFile(filename string) {
3535
defer f.Close()
3636
scanner := bufio.NewScanner(f)
3737
for scanner.Scan() {
38-
fmt.Println(scanner.Text())
38+
fmt.Println(scanner.Text()) // read as long there are strings
3939
}
4040
if err := scanner.Err(); err != nil {
4141
panic(err.Error()) // error handling

0 commit comments

Comments
 (0)