Skip to content

Commit 0507994

Browse files
committed
Fixing typos.
1 parent e7143b5 commit 0507994

File tree

14 files changed

+25
-25
lines changed

14 files changed

+25
-25
lines changed

internal/fetch/fetchdata_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ var moduleStd = &testModule{
13851385
{
13861386
GOOS: internal.All,
13871387
GOARCH: internal.All,
1388-
Synopsis: "Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.",
1388+
Synopsis: "Package context defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes.",
13891389
API: []*internal.Symbol{
13901390
{
13911391
SymbolMeta: internal.SymbolMeta{

internal/frontend/latest_version_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func TestLatestMinorVersion(t *testing.T) {
5353
name: "module does not exist",
5454
fullPath: "github.com/mymodule/doesnotexist",
5555
modulePath: internal.UnknownModulePath,
56-
wantErr: fmt.Errorf("error while retriving minor version"),
56+
wantErr: fmt.Errorf("error while retrieving minor version"),
5757
},
5858
}
5959
ctx := context.Background()

internal/frontend/search_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ func TestNewSearchResult(t *testing.T) {
500500
got := newSearchResult(&test.in, false, pr)
501501
test.want.CommitTime = "unknown"
502502
if diff := cmp.Diff(&test.want, got); diff != "" {
503-
t.Errorf("mimatch (-want, +got):\n%s", diff)
503+
t.Errorf("mismatch (-want, +got):\n%s", diff)
504504
}
505505
})
506506
}

internal/frontend/versions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func buildVersionDetails(ctx context.Context, currentModulePath, packagePath str
156156
for _, mi := range modInfos {
157157
// Try to resolve the most appropriate major version for this version. If
158158
// we detect a +incompatible version (when the path version does not match
159-
// the sematic version), we prefer the path version.
159+
// the semantic version), we prefer the path version.
160160
major := semver.Major(mi.Version)
161161
if mi.ModulePath == stdlib.ModulePath {
162162
var err error

internal/stdlib/testdata/v1.12.5/src/context/context.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// Package context defines the Context type, which carries deadlines,
6-
// cancelation signals, and other request-scoped values across API boundaries
6+
// cancellation signals, and other request-scoped values across API boundaries
77
// and between processes.
88
//
99
// Incoming requests to a server should create a Context, and outgoing
@@ -30,9 +30,9 @@
3030
// explicitly to each function that needs it. The Context should be the first
3131
// parameter, typically named ctx:
3232
//
33-
// func DoSomething(ctx context.Context, arg Arg) error {
34-
// // ... use ctx ...
35-
// }
33+
// func DoSomething(ctx context.Context, arg Arg) error {
34+
// // ... use ctx ...
35+
// }
3636
//
3737
// Do not pass a nil Context, even if a function permits it. Pass context.TODO
3838
// if you are unsure about which Context to use.
@@ -55,7 +55,7 @@ import (
5555
"time"
5656
)
5757

58-
// A Context carries a deadline, a cancelation signal, and other values across
58+
// A Context carries a deadline, a cancellation signal, and other values across
5959
// API boundaries.
6060
//
6161
// Context's methods may be called by multiple goroutines simultaneously.
@@ -93,7 +93,7 @@ type Context interface {
9393
// }
9494
//
9595
// See https://blog.golang.org/pipelines for more examples of how to use
96-
// a Done channel for cancelation.
96+
// a Done channel for cancellation.
9797
Done() <-chan struct{}
9898

9999
// If Done is not yet closed, Err returns nil.
@@ -442,11 +442,11 @@ func (c *timerCtx) cancel(removeFromParent bool, err error) {
442442
// Canceling this context releases resources associated with it, so code should
443443
// call cancel as soon as the operations running in this Context complete:
444444
//
445-
// func slowOperationWithTimeout(ctx context.Context) (Result, error) {
446-
// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)
447-
// defer cancel() // releases resources if slowOperation completes before timeout elapses
448-
// return slowOperation(ctx)
449-
// }
445+
// func slowOperationWithTimeout(ctx context.Context) (Result, error) {
446+
// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)
447+
// defer cancel() // releases resources if slowOperation completes before timeout elapses
448+
// return slowOperation(ctx)
449+
// }
450450
func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {
451451
return WithDeadline(parent, time.Now().Add(timeout))
452452
}

internal/stdlib/testdata/v1.12.5/src/context/context_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func XTestWithCancel(t testingT) {
9494
}
9595

9696
cancel()
97-
time.Sleep(100 * time.Millisecond) // let cancelation propagate
97+
time.Sleep(100 * time.Millisecond) // let cancellation propagate
9898

9999
for i, c := range contexts {
100100
select {
@@ -306,7 +306,7 @@ func XTestCanceledTimeout(t testingT) {
306306
o := otherContext{c}
307307
c, cancel := WithTimeout(o, 2*time.Second)
308308
cancel()
309-
time.Sleep(100 * time.Millisecond) // let cancelation propagate
309+
time.Sleep(100 * time.Millisecond) // let cancellation propagate
310310
select {
311311
case <-c.Done():
312312
default:

internal/stdlib/testdata/v1.12.5/src/context/example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func ExampleWithDeadline() {
5959
ctx, cancel := context.WithDeadline(context.Background(), d)
6060

6161
// Even though ctx will be expired, it is good practice to call its
62-
// cancelation function in any case. Failure to do so may keep the
62+
// cancellation function in any case. Failure to do so may keep the
6363
// context and its parent alive longer than necessary.
6464
defer cancel()
6565

internal/symbol/stdlib.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ var pathToEmbeddedMethods = map[string]map[string]string{
107107
// Embedded https://pkg.go.dev/debug/macho#File.Segment
108108
"FatArch.Segment": "v1.3.0",
109109
// https://pkg.go.dev/debug/[email protected]#Rpath
110-
// Embeddded https://pkg.go.dev/debug/macho#LoadBytes.Raw
110+
// Embedded https://pkg.go.dev/debug/macho#LoadBytes.Raw
111111
"Rpath.Raw": "v1.10.0",
112112
},
113113
"debug/plan9obj": {

internal/worker/fetch_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func TestFetchAndUpdateState(t *testing.T) {
180180
},
181181
NumImports: 5,
182182
Documentation: []*internal.Documentation{{
183-
Synopsis: "Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.",
183+
Synopsis: "Package context defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes.",
184184
GOOS: "linux",
185185
GOARCH: "amd64",
186186
}},

static/shared/footer/footer.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
<img data-value="dark" class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/brightness_2_gm_grey_24dp.svg" alt="Dark theme">
128128
<img data-value="light" class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/light_mode_gm_grey_24dp.svg" alt="Light theme">
129129
</button>
130-
<button class="go-Button go-Button--text go-Footer-keyboard js-openShortcuts" aria-label="Open shorcuts modal">
130+
<button class="go-Button go-Button--text go-Footer-keyboard js-openShortcuts" aria-label="Open shortcuts modal">
131131
<img class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/keyboard_grey_24dp.svg" alt="">
132132
</button>
133133
</li>

static/shared/modal/modal.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
---
44

5-
The size modifer class is optional. The base modal will grow to fit the inner content.
5+
The size modifier class is optional. The base modal will grow to fit the inner content.
66

77
### Small {#modal-small}
88

static/shared/playground/playground.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ require example v1
109109
expect(window.open).toHaveBeenCalledWith('https://play.golang.org/p/abcdefg');
110110
});
111111

112-
it('replaces textarea with formated code after pressing format', async () => {
112+
it('replaces textarea with formatted code after pressing format', async () => {
113113
mocked(window.fetch).mockResolvedValue({
114114
json: () =>
115115
Promise.resolve({

static/shared/shared.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ body {
7676
min-width: 23.5rem;
7777

7878
/**
79-
* This is used to programatically detect whether overflow needs to be altered
79+
* This is used to programmatically detect whether overflow needs to be altered
8080
* to prevent jitter when focusing within fixed elements on iOS.
8181
* It also must be set to 'touch' for the fix to work.
8282
*/

static/shared/table/table.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* Controller for a table element with expandable rows. Adds event listeners to
10-
* a toggle within a table row that controls visiblity of additional related
10+
* a toggle within a table row that controls visibility of additional related
1111
* rows in the table.
1212
*
1313
* @example

0 commit comments

Comments
 (0)