Skip to content

Commit 682bb47

Browse files
committed
fix typo in comment
1 parent 3e83db7 commit 682bb47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backends/s3/stream.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type writerWrapper struct {
4545
}
4646

4747
// Write sends p to store as the S3 object associated with w.
48-
// An error is returned if Write failed previously, an error occured in S3, or w is already closed.
48+
// An error is returned if Write failed previously, an error occurred in S3, or w is already closed.
4949
func (w *writerWrapper) Write(p []byte) (n int, err error) {
5050
// Not checking the status of ctx explicitly because it will be propagated
5151
// from the reader goroutine.
@@ -54,7 +54,7 @@ func (w *writerWrapper) Write(p []byte) (n int, err error) {
5454
}
5555

5656
// Close ensures that the written data is saved.
57-
// An error is returned if Write failed previously, an error occured in S3, or w is already closed.
57+
// An error is returned if Write failed previously, an error occurred in S3, or w is already closed.
5858
func (w *writerWrapper) Close() (err error) {
5959
err = w.prevErr
6060
_ = w.pw.CloseWithError(err)

0 commit comments

Comments
 (0)