aboutsummaryrefslogtreecommitdiffstats
path: root/skate/xio
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-09-23 21:52:20 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-09-23 21:52:20 +0200
commited353fc849b1c6014b9cc91c1936729d1f79d8fb (patch)
treefbe86ed0f60e054e6ef444a9464a78ba6b4c4697 /skate/xio
parent3e2c21a396a0e1ce98a2fdb2de5018de0a380f71 (diff)
downloadrefcat-ed353fc849b1c6014b9cc91c1936729d1f79d8fb.tar.gz
refcat-ed353fc849b1c6014b9cc91c1936729d1f79d8fb.zip
misc: fix and improve comments
Diffstat (limited to 'skate/xio')
-rw-r--r--skate/xio/util.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/skate/xio/util.go b/skate/xio/util.go
index 10225a1..4416c9f 100644
--- a/skate/xio/util.go
+++ b/skate/xio/util.go
@@ -9,13 +9,13 @@ import (
"sync"
)
-// SyncWriter makes any writer thread safe, using a lock.
+// SyncWriter makes any writer thread-safe using a lock.
type SyncWriter struct {
sync.Mutex
w io.Writer
}
-// NewSyncWriter returns an io.Writer that can be safely accessed by multiple
+// NewSyncWriter returns an io.Writer that can be safely written to by multiple
// goroutines.
func NewSyncWriter(w io.Writer) *SyncWriter {
return &SyncWriter{w: w}