diff --git a/README.md b/README.md index 3a80e02..ac1a387 100644 --- a/README.md +++ b/README.md @@ -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")) @@ -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)) -``` \ No newline at end of file +```