Skip to content

Commit

Permalink
Update writer.go fixed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
christoofar authored Apr 25, 2024
1 parent cd4808d commit de53d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type XZWriter struct {
}

// Write takes uncompressed data passed in from the underlying source and yields the LZMA2 compressed data into a byte slice.
// You must call Close when you are done writing data to the writer to signal to LZMA there is more data coming (if your stream source is a buffer and not sending EOF)
// You must call Close when you are done writing data to the writer to signal to LZMA there will be no more data coming (if your stream source is a buffer and not sending EOF)
// otherwise your program will hang.
func (w *XZWriter) Write(p []byte) (n int, err error) {
// This if block is a run-once context for the goroutines that will hitch to liblzma. This is because
Expand Down

0 comments on commit de53d41

Please sign in to comment.