diff --git a/examples/reading-files/reading-files.go b/examples/reading-files/reading-files.go index f07b186..5a930a3 100644 --- a/examples/reading-files/reading-files.go +++ b/examples/reading-files/reading-files.go @@ -32,7 +32,8 @@ func main() { // parts of a file are read. For these tasks, start // by `Open`ing a file to obtain an `os.File` value. f, err := os.Open("/tmp/dat") - + check(err) + // Read some bytes from the beginning of the file. // Allow up to 5 to be read but also note how many // actually were read.