summaryrefslogtreecommitdiff
path: root/error_buffer.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-02 18:51:27 +0300
committerWolfy-J <[email protected]>2019-05-02 18:51:27 +0300
commitbb95a9fbd6cc7e8a2d8204417e965dc8e1282128 (patch)
tree46288a4337701a1ee6c7b8734e31cf531cf558fa /error_buffer.go
parentb3e7bbccdd7636b6ce7d90cf4f295e498feb719c (diff)
base watcher implementation
Diffstat (limited to 'error_buffer.go')
-rw-r--r--error_buffer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/error_buffer.go b/error_buffer.go
index becd8295..0eaf03b6 100644
--- a/error_buffer.go
+++ b/error_buffer.go
@@ -87,8 +87,8 @@ func (eb *errBuffer) Len() int {
return len(eb.buf)
}
-// Write appends the contents of p to the errBuffer, growing the errBuffer as
-// needed. The return value n is the length of p; err is always nil.
+// Write appends the contents of pool to the errBuffer, growing the errBuffer as
+// needed. The return value n is the length of pool; err is always nil.
func (eb *errBuffer) Write(p []byte) (int, error) {
eb.mu.Lock()
eb.buf = append(eb.buf, p...)