From ed353fc849b1c6014b9cc91c1936729d1f79d8fb Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 23 Sep 2021 21:52:20 +0200 Subject: misc: fix and improve comments --- skate/xio/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'skate/xio') 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} -- cgit v1.2.3