aboutsummaryrefslogtreecommitdiffstats
path: root/utils/ioutil/common.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-11-20 11:16:47 +0100
committerGitHub <noreply@github.com>2017-11-20 11:16:47 +0100
commit5cf1147e1b891aee85fdd66d24cb5e8cf86531ce (patch)
treea0a4550273fd15ecb04ad6b548f13c8e3cfce2d7 /utils/ioutil/common.go
parent6abcb9798743579819719eb7328f2a7bdc8a882e (diff)
parentd9b8691c6b137bb59ee185f69acf868a8f42b77d (diff)
downloadgo-git-5cf1147e1b891aee85fdd66d24cb5e8cf86531ce.tar.gz
Merge pull request #647 from ferhatelmas/typo-fixes
examples,plumbing,utils: typo fixes
Diffstat (limited to 'utils/ioutil/common.go')
-rw-r--r--utils/ioutil/common.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/ioutil/common.go b/utils/ioutil/common.go
index 66044e2..e9dcbfe 100644
--- a/utils/ioutil/common.go
+++ b/utils/ioutil/common.go
@@ -123,13 +123,13 @@ type readerOnError struct {
}
// NewReaderOnError returns a io.Reader that call the notify function when an
-// unexpected (!io.EOF) error happends, after call Read function.
+// unexpected (!io.EOF) error happens, after call Read function.
func NewReaderOnError(r io.Reader, notify func(error)) io.Reader {
return &readerOnError{r, notify}
}
// NewReadCloserOnError returns a io.ReadCloser that call the notify function
-// when an unexpected (!io.EOF) error happends, after call Read function.
+// when an unexpected (!io.EOF) error happens, after call Read function.
func NewReadCloserOnError(r io.ReadCloser, notify func(error)) io.ReadCloser {
return NewReadCloser(NewReaderOnError(r, notify), r)
}
@@ -149,13 +149,13 @@ type writerOnError struct {
}
// NewWriterOnError returns a io.Writer that call the notify function when an
-// unexpected (!io.EOF) error happends, after call Write function.
+// unexpected (!io.EOF) error happens, after call Write function.
func NewWriterOnError(w io.Writer, notify func(error)) io.Writer {
return &writerOnError{w, notify}
}
// NewWriteCloserOnError returns a io.WriteCloser that call the notify function
-//when an unexpected (!io.EOF) error happends, after call Write function.
+//when an unexpected (!io.EOF) error happens, after call Write function.
func NewWriteCloserOnError(w io.WriteCloser, notify func(error)) io.WriteCloser {
return NewWriteCloser(NewWriterOnError(w, notify), w)
}