Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lnnujxxy committed Oct 21, 2020
1 parent 3a38e80 commit 35da095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -8,7 +8,7 @@ A circular buffer (ring buffer) in Go, implemented io.ReaderWriter interface


```go
rb := NewRingBuffer(1024)
rb := New(1024)

// write
rb.Write([]byte("abcd"))
Expand All @@ -19,4 +19,4 @@ A circular buffer (ring buffer) in Go, implemented io.ReaderWriter interface
buf := make([]byte, 4)
rb.Read(buf)
fmt.Println(string(buf))
```
```

0 comments on commit 35da095

Please sign in to comment.