aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/os/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/os/file.go')
-rw-r--r--libgo/go/os/file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/os/file.go b/libgo/go/os/file.go
index e717f17..2823128 100644
--- a/libgo/go/os/file.go
+++ b/libgo/go/os/file.go
@@ -109,7 +109,7 @@ func (e *LinkError) Unwrap() error {
return e.Err
}
-// Read reads up to len(b) bytes from the File.
+// Read reads up to len(b) bytes from the File and stores them in b.
// It returns the number of bytes read and any error encountered.
// At end of file, Read returns 0, io.EOF.
func (f *File) Read(b []byte) (n int, err error) {
@@ -166,7 +166,7 @@ type onlyWriter struct {
io.Writer
}
-// Write writes len(b) bytes to the File.
+// Write writes len(b) bytes from b to the File.
// It returns the number of bytes written and an error, if any.
// Write returns a non-nil error when n != len(b).
func (f *File) Write(b []byte) (n int, err error) {