Merge remote-tracking branch 'deafbybeheading/patch-1'
This commit is contained in:
commit
d2638fe65e
@ -34,7 +34,7 @@ func main() {
|
|||||||
f, err := os.Open("/tmp/dat")
|
f, err := os.Open("/tmp/dat")
|
||||||
|
|
||||||
// Read some bytes from the beginning of the file.
|
// Read some bytes from the beginning of the file.
|
||||||
// Allow up to 5 to be read but also not how many
|
// Allow up to 5 to be read but also note how many
|
||||||
// actually were read.
|
// actually were read.
|
||||||
b1 := make([]byte, 5)
|
b1 := make([]byte, 5)
|
||||||
n1, err := f.Read(b1)
|
n1, err := f.Read(b1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user