Fixed some weird replace all mistake

This commit is contained in:
Saxon1 2017-12-03 09:01:00 +10:30
parent ee0d8b4b1d
commit 41355c2034
1 changed files with 2 additions and 2 deletions

View File

@ -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 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 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 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. empty, or there has been a second call to Read before a call to DoneReading.
*/ */
func (rb *RingBuffer) Read() ([]byte, int, error) { 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 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. An error is returned if there was no initial call to Read.
*/ */
func (rb *RingBuffer) DoneReading() error { func (rb *RingBuffer) DoneReading() error {