aboutsummaryrefslogtreecommitdiff
path: root/internal/stdlib/testdata
diff options
context:
space:
mode:
authorcuishuang <imcusg@gmail.com>2025-10-21 10:24:51 +0800
committerGopher Robot <gobot@golang.org>2025-10-23 11:45:22 -0700
commit34a1afa34fdbd811526de5926a44fa2a27418a2b (patch)
tree1eb7e53b9be3b5763d5a2abb3be441fc5b66075a /internal/stdlib/testdata
parentfe04cb7342faa5af6b014191b12b56d823382fc7 (diff)
downloadgo-x-pkgsite-34a1afa34fdbd811526de5926a44fa2a27418a2b.tar.xz
all: fix some comments
Change-Id: Ia70b35ab9aef270692a3892629c3c81208771089 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/713360 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Sean Liao <sean@liao.dev> kokoro-CI: kokoro <noreply+kokoro@google.com> Auto-Submit: Sean Liao <sean@liao.dev> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'internal/stdlib/testdata')
-rw-r--r--internal/stdlib/testdata/v1.12.5/src/context/context.go6
-rw-r--r--internal/stdlib/testdata/v1.12.5/src/context/context_test.go4
-rw-r--r--internal/stdlib/testdata/v1.12.5/src/context/example_test.go2
3 files changed, 6 insertions, 6 deletions
diff --git a/internal/stdlib/testdata/v1.12.5/src/context/context.go b/internal/stdlib/testdata/v1.12.5/src/context/context.go
index 21a40d59..3dcab5a2 100644
--- a/internal/stdlib/testdata/v1.12.5/src/context/context.go
+++ b/internal/stdlib/testdata/v1.12.5/src/context/context.go
@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
// Package context defines the Context type, which carries deadlines,
-// cancelation signals, and other request-scoped values across API boundaries
+// cancellation signals, and other request-scoped values across API boundaries
// and between processes.
//
// Incoming requests to a server should create a Context, and outgoing
@@ -55,7 +55,7 @@ import (
"time"
)
-// A Context carries a deadline, a cancelation signal, and other values across
+// A Context carries a deadline, a cancellation signal, and other values across
// API boundaries.
//
// Context's methods may be called by multiple goroutines simultaneously.
@@ -93,7 +93,7 @@ type Context interface {
// }
//
// See https://blog.golang.org/pipelines for more examples of how to use
- // a Done channel for cancelation.
+ // a Done channel for cancellation.
Done() <-chan struct{}
// If Done is not yet closed, Err returns nil.
diff --git a/internal/stdlib/testdata/v1.12.5/src/context/context_test.go b/internal/stdlib/testdata/v1.12.5/src/context/context_test.go
index 0b6ca742..23bd715d 100644
--- a/internal/stdlib/testdata/v1.12.5/src/context/context_test.go
+++ b/internal/stdlib/testdata/v1.12.5/src/context/context_test.go
@@ -94,7 +94,7 @@ func XTestWithCancel(t testingT) {
}
cancel()
- time.Sleep(100 * time.Millisecond) // let cancelation propagate
+ time.Sleep(100 * time.Millisecond) // let cancellation propagate
for i, c := range contexts {
select {
@@ -306,7 +306,7 @@ func XTestCanceledTimeout(t testingT) {
o := otherContext{c}
c, cancel := WithTimeout(o, 2*time.Second)
cancel()
- time.Sleep(100 * time.Millisecond) // let cancelation propagate
+ time.Sleep(100 * time.Millisecond) // let cancellation propagate
select {
case <-c.Done():
default:
diff --git a/internal/stdlib/testdata/v1.12.5/src/context/example_test.go b/internal/stdlib/testdata/v1.12.5/src/context/example_test.go
index 2b28b577..b91a8ace 100644
--- a/internal/stdlib/testdata/v1.12.5/src/context/example_test.go
+++ b/internal/stdlib/testdata/v1.12.5/src/context/example_test.go
@@ -59,7 +59,7 @@ func ExampleWithDeadline() {
ctx, cancel := context.WithDeadline(context.Background(), d)
// Even though ctx will be expired, it is good practice to call its
- // cancelation function in any case. Failure to do so may keep the
+ // cancellation function in any case. Failure to do so may keep the
// context and its parent alive longer than necessary.
defer cancel()