Skip to content

Commit

Permalink
Update s2/writer.go
Browse files Browse the repository at this point in the history
Co-authored-by: Klaus Post <klauspost@gmail.com>
  • Loading branch information
Jille and klauspost authored Feb 11, 2024
1 parent 2c36775 commit 09a048f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions s2/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,8 @@ func (w *Writer) writeSync(p []byte) (nRet int, errRet error) {
return nRet, nil
}

// AsyncFlush writes any buffered bytes to a block, but does not flush it to the
// underlying io.Writer.
// AsyncFlush writes any buffered bytes to a block and starts compressing it.
// It does not wait for the output has been written as Flush() does.
func (w *Writer) AsyncFlush() error {
if err := w.err(nil); err != nil {
return err
Expand Down

0 comments on commit 09a048f

Please sign in to comment.