Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/fetch/fetchdata_test.go
Original file line number Diff line number Diff line change
@@ -1385,7 +1385,7 @@ var moduleStd = &testModule{
{
GOOS: internal.All,
GOARCH: internal.All,
Synopsis: "Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.",
Synopsis: "Package context defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes.",
API: []*internal.Symbol{
{
SymbolMeta: internal.SymbolMeta{
2 changes: 1 addition & 1 deletion internal/frontend/latest_version_test.go
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ func TestLatestMinorVersion(t *testing.T) {
name: "module does not exist",
fullPath: "github.com/mymodule/doesnotexist",
modulePath: internal.UnknownModulePath,
wantErr: fmt.Errorf("error while retriving minor version"),
wantErr: fmt.Errorf("error while retrieving minor version"),
},
}
ctx := context.Background()
2 changes: 1 addition & 1 deletion internal/frontend/search_test.go
Original file line number Diff line number Diff line change
@@ -500,7 +500,7 @@ func TestNewSearchResult(t *testing.T) {
got := newSearchResult(&test.in, false, pr)
test.want.CommitTime = "unknown"
if diff := cmp.Diff(&test.want, got); diff != "" {
t.Errorf("mimatch (-want, +got):\n%s", diff)
t.Errorf("mismatch (-want, +got):\n%s", diff)
}
})
}
2 changes: 1 addition & 1 deletion internal/frontend/versions.go
Original file line number Diff line number Diff line change
@@ -156,7 +156,7 @@ func buildVersionDetails(ctx context.Context, currentModulePath, packagePath str
for _, mi := range modInfos {
// Try to resolve the most appropriate major version for this version. If
// we detect a +incompatible version (when the path version does not match
// the sematic version), we prefer the path version.
// the semantic version), we prefer the path version.
major := semver.Major(mi.Version)
if mi.ModulePath == stdlib.ModulePath {
var err error
22 changes: 11 additions & 11 deletions internal/stdlib/testdata/v1.12.5/src/context/context.go
Original file line number Diff line number Diff line change
@@ -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
@@ -30,9 +30,9 @@
// explicitly to each function that needs it. The Context should be the first
// parameter, typically named ctx:
//
// func DoSomething(ctx context.Context, arg Arg) error {
// // ... use ctx ...
// }
// func DoSomething(ctx context.Context, arg Arg) error {
// // ... use ctx ...
// }
//
// Do not pass a nil Context, even if a function permits it. Pass context.TODO
// if you are unsure about which Context to use.
@@ -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.
@@ -442,11 +442,11 @@ func (c *timerCtx) cancel(removeFromParent bool, err error) {
// Canceling this context releases resources associated with it, so code should
// call cancel as soon as the operations running in this Context complete:
//
// func slowOperationWithTimeout(ctx context.Context) (Result, error) {
// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)
// defer cancel() // releases resources if slowOperation completes before timeout elapses
// return slowOperation(ctx)
// }
// func slowOperationWithTimeout(ctx context.Context) (Result, error) {
// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)
// defer cancel() // releases resources if slowOperation completes before timeout elapses
// return slowOperation(ctx)
// }
func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {
return WithDeadline(parent, time.Now().Add(timeout))
}
4 changes: 2 additions & 2 deletions internal/stdlib/testdata/v1.12.5/src/context/context_test.go
Original file line number Diff line number Diff line change
@@ -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:
Original file line number Diff line number Diff line change
@@ -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()

2 changes: 1 addition & 1 deletion internal/symbol/stdlib.go
Original file line number Diff line number Diff line change
@@ -107,7 +107,7 @@ var pathToEmbeddedMethods = map[string]map[string]string{
// Embedded https://pkg.go.dev/debug/macho#File.Segment
"FatArch.Segment": "v1.3.0",
// https://pkg.go.dev/debug/[email protected]#Rpath
// Embeddded https://pkg.go.dev/debug/macho#LoadBytes.Raw
// Embedded https://pkg.go.dev/debug/macho#LoadBytes.Raw
"Rpath.Raw": "v1.10.0",
},
"debug/plan9obj": {
2 changes: 1 addition & 1 deletion internal/worker/fetch_test.go
Original file line number Diff line number Diff line change
@@ -180,7 +180,7 @@ func TestFetchAndUpdateState(t *testing.T) {
},
NumImports: 5,
Documentation: []*internal.Documentation{{
Synopsis: "Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.",
Synopsis: "Package context defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes.",
GOOS: "linux",
GOARCH: "amd64",
}},
2 changes: 1 addition & 1 deletion static/shared/footer/footer.tmpl
Original file line number Diff line number Diff line change
@@ -127,7 +127,7 @@
<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">
<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">
</button>
<button class="go-Button go-Button--text go-Footer-keyboard js-openShortcuts" aria-label="Open shorcuts modal">
<button class="go-Button go-Button--text go-Footer-keyboard js-openShortcuts" aria-label="Open shortcuts modal">
<img class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/keyboard_grey_24dp.svg" alt="">
</button>
</li>
2 changes: 1 addition & 1 deletion static/shared/modal/modal.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

---

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

### Small {#modal-small}

2 changes: 1 addition & 1 deletion static/shared/playground/playground.test.ts
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@ require example v1
expect(window.open).toHaveBeenCalledWith('https://play.golang.org/p/abcdefg');
});

it('replaces textarea with formated code after pressing format', async () => {
it('replaces textarea with formatted code after pressing format', async () => {
mocked(window.fetch).mockResolvedValue({
json: () =>
Promise.resolve({
2 changes: 1 addition & 1 deletion static/shared/shared.css
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@ body {
min-width: 23.5rem;

/**
* This is used to programatically detect whether overflow needs to be altered
* This is used to programmatically detect whether overflow needs to be altered
* to prevent jitter when focusing within fixed elements on iOS.
* It also must be set to 'touch' for the fix to work.
*/
2 changes: 1 addition & 1 deletion static/shared/table/table.ts
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@

/**
* Controller for a table element with expandable rows. Adds event listeners to
* a toggle within a table row that controls visiblity of additional related
* a toggle within a table row that controls visibility of additional related
* rows in the table.
*
* @example