]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix some minor grammatical issues in the comments
authorcuishuang <imcusg@gmail.com>
Thu, 18 Dec 2025 02:36:50 +0000 (10:36 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 30 Dec 2025 15:28:53 +0000 (07:28 -0800)
Change-Id: I0459f05e7f6abd9738813c65d993114e931720d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/731000
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>

src/archive/tar/reader_test.go
src/archive/tar/stat_unix.go
src/archive/tar/strconv.go
src/runtime/trace.go
src/runtime/tracebuf.go
test/typeparam/typelist.go

index de3d36530470d1142c0336aab4172512336a2c5b..c7611ca044c3f51e6cbcef512a281544ba96cecc 100644 (file)
@@ -787,7 +787,7 @@ type readBadSeeker struct{ io.ReadSeeker }
 
 func (rbs *readBadSeeker) Seek(int64, int) (int64, error) { return 0, fmt.Errorf("illegal seek") }
 
-// TestReadTruncation test the ending condition on various truncated files and
+// TestReadTruncation tests the ending condition on various truncated files and
 // that truncated files are still detected even if the underlying io.Reader
 // satisfies io.Seeker.
 func TestReadTruncation(t *testing.T) {
index f999f56db6c915bbc4357e6fb21d703962860597..891a1a3b4a3e3050f88a9b06ec35f75badd81d11 100644 (file)
@@ -19,7 +19,7 @@ func init() {
        sysStat = statUnix
 }
 
-// userMap and groupMap caches UID and GID lookups for performance reasons.
+// userMap and groupMap cache UID and GID lookups for performance reasons.
 // The downside is that renaming uname or gname by the OS never takes effect.
 var userMap, groupMap sync.Map // map[int]string
 
index 217efe9e2ee7f4670e3e50fe2fb30dd02a1de6e6..d3c28a8c4e3bcef950249f2174d28f60a2fbba28 100644 (file)
@@ -312,7 +312,7 @@ func formatPAXRecord(k, v string) (string, error) {
 //     "%d %s=%s\n" % (size, key, value)
 //
 // Keys and values should be UTF-8, but the number of bad writers out there
-// forces us to be more liberal.
+// forces us to be more liberal.
 // Thus, we only reject all keys with NUL, and only reject NULs in values
 // for the PAX version of the USTAR string fields.
 // The key must not contain an '=' character.
index a7e8937a05647a43adffbd12a53fbf3c49285451..5f568d205ef436adc542a3d628c5d66e1540cebb 100644 (file)
@@ -12,7 +12,7 @@
 //
 // ## Design
 //
-// The basic idea behind the the execution tracer is to have per-M buffers that
+// The basic idea behind the execution tracer is to have per-M buffers that
 // trace data may be written into. Each M maintains a write flag indicating whether
 // its trace buffer is currently in use.
 //
 // doesn't do this directly for performance reasons. The runtime implementation instead caches
 // a G on the M created for the C thread. On Linux this M is then cached in the thread's TLS,
 // and on other systems, the M is put on a global list on exit from Go. We need to do some
-// extra work to make sure that this is modeled correctly in the the tracer. For example,
+// extra work to make sure that this is modeled correctly in the tracer. For example,
 // a C thread exiting Go may leave a P hanging off of its M (whether that M is kept in TLS
 // or placed back on a list). In order to correctly model goroutine creation and destruction,
 // we must behave as if the P was at some point stolen by the runtime, if the C thread
index 5adaede424c4db3a66b0969e0f2fe315a0de4e11..1caf69f8b8eeea01bfc21f910ac2c1d94cd5b8dd 100644 (file)
@@ -29,7 +29,7 @@ type traceWriter struct {
        *traceBuf
 }
 
-// writer returns an a traceWriter that writes into the current M's stream.
+// writer returns a traceWriter that writes into the current M's stream.
 //
 // Once this is called, the caller must guard against stack growth until
 // end is called on it. Therefore, it's highly recommended to use this
index cd8ef7d6e721068597a8f989e55749fca7e491ee..b3226301fb5ccab7922c8ba9c19770343ac97d6a 100644 (file)
@@ -32,7 +32,7 @@ func _[T interface{ ~int }](x T) {
        var _ T = T(myint(42))
 }
 
-// Indexing a generic type which has a an array as core type.
+// Indexing a generic type which has an array as core type.
 func _[T interface{ ~[10]int }](x T) {
        _ = x[9] // ok
 }