Skip to content

Commit 3bf284d

Browse files
committed
updating readme with Discard instead of NewDiscard
1 parent 2c725ff commit 3bf284d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ import (
137137
)
138138

139139
// Reads will return io.EOF, writes will return success (nil error, full write) but no data was written.
140-
buf := buf.NewDiscard()
140+
buf := buffer.Discard
141141
```
142142

143143
Custom Buffers

0 commit comments

Comments
 (0)