diff --git a/ringbuffer/RingBuffer.go b/ringbuffer/RingBuffer.go index d6874185..a793077a 100644 --- a/ringbuffer/RingBuffer.go +++ b/ringbuffer/RingBuffer.go @@ -118,7 +118,7 @@ func (rb *RingBuffer) DoneWriting(size int) error { Read gets the address of the next element that we would like to get data from and thereafter consider empty in the buffer for writing during latter calls to Get. The address of the data is returned, as well as the size of -the data contained at rb address. An error is returned if the buffer is +the data contained at this address. An error is returned if the buffer is empty, or there has been a second call to Read before a call to DoneReading. */ func (rb *RingBuffer) Read() ([]byte, int, error) { @@ -136,7 +136,7 @@ func (rb *RingBuffer) Read() ([]byte, int, error) { /* DoneReading informs the buffer that we have finished with the address -provided by Read. The buffer can now consider rb address to be empty. +provided by Read. The buffer can now consider this address to be empty. An error is returned if there was no initial call to Read. */ func (rb *RingBuffer) DoneReading() error {