]> Cypherpunks repositories - gostls13.git/commitdiff
internal/poll: fix some grammar errors
authorAndy Pan <panjf2000@gmail.com>
Thu, 11 Mar 2021 14:34:45 +0000 (22:34 +0800)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Fri, 12 Mar 2021 02:21:04 +0000 (02:21 +0000)
Change-Id: I25a6424bce9d372fa46e8bdd856095845d3397bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/300889
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>

src/internal/poll/splice_linux.go

index 971f754f43cdf65baabbf5dd09c224f5310ea81c..49350b1ddcd7481e1d37030240415cb26b05529f 100644 (file)
@@ -160,9 +160,9 @@ type splicePipe struct {
        data int
 }
 
-// splicePipePool caches pipes to avoid high frequency construction and destruction of pipe buffers.
-// The garbage collector will free all pipes in the sync.Pool in periodically, thus we need to set up
-// a finalizer for each pipe to close the its file descriptors before the actual GC.
+// splicePipePool caches pipes to avoid high-frequency construction and destruction of pipe buffers.
+// The garbage collector will free all pipes in the sync.Pool periodically, thus we need to set up
+// a finalizer for each pipe to close its file descriptors before the actual GC.
 var splicePipePool = sync.Pool{New: newPoolPipe}
 
 func newPoolPipe() interface{} {
@@ -175,10 +175,10 @@ func newPoolPipe() interface{} {
        return p
 }
 
-// getPipe tries to acquire a pipe buffer from the pool or create a new one with newPipe() if it gets nil from cache.
+// getPipe tries to acquire a pipe buffer from the pool or create a new one with newPipe() if it gets nil from the cache.
 //
 // Note that it may fail to create a new pipe buffer by newPipe(), in which case getPipe() will return a generic error
-// and system call name splice in string as the indication.
+// and system call name splice in string as the indication.
 func getPipe() (*splicePipe, string, error) {
        v := splicePipePool.Get()
        if v == nil {