Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing typos. #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion internal/frontend/latest_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion internal/frontend/search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion internal/frontend/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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))
}
Expand Down
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
Expand Up @@ -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 {
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion internal/symbol/stdlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/macho@go1.10#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": {
Expand Down
2 changes: 1 addition & 1 deletion internal/worker/fetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}},
Expand Down
2 changes: 1 addition & 1 deletion static/shared/footer/footer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion static/shared/modal/modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
2 changes: 1 addition & 1 deletion static/shared/playground/playground.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion static/shared/shared.css
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion static/shared/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down