Skip to content

Commit 34a1afa

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some comments
Change-Id: Ia70b35ab9aef270692a3892629c3c81208771089 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/713360 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Sean Liao <[email protected]> kokoro-CI: kokoro <[email protected]> Auto-Submit: Sean Liao <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: David Chase <[email protected]>
1 parent fe04cb7 commit 34a1afa

File tree

15 files changed

+19
-19
lines changed

15 files changed

+19
-19
lines changed

deploy/migrate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Run a migrate command on a database
66

7-
# Required substitions
7+
# Required substitutions
88
# _ENV environment (dev, staging, or prod)
99
# _CMD command to migrate
1010

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (c *Config) DBSecondaryConnInfo() string {
170170
return c.dbConnInfo(c.DBSecondaryHost)
171171
}
172172

173-
// dbConnInfo returns a PostgresSQL connection string for the given host.
173+
// dbConnInfo returns a PostgreSQL connection string for the given host.
174174
func (c *Config) dbConnInfo(host string) string {
175175
// For the connection string syntax, see
176176
// https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING.

internal/fetch/fetchdata_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ var moduleStd = &testModule{
13981398
{
13991399
GOOS: internal.All,
14001400
GOARCH: internal.All,
1401-
Synopsis: "Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.",
1401+
Synopsis: "Package context defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes.",
14021402
API: []*internal.Symbol{
14031403
{
14041404
SymbolMeta: internal.SymbolMeta{

internal/frontend/latest_version_test.go

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

internal/frontend/markdown.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func (e *extractTOC) extract(doc *markdown.Document) {
211211
}
212212
}
213213
if e.removeTitle {
214-
// If there is only one top tevel heading with 1 or more children we
214+
// If there is only one top level heading with 1 or more children we
215215
// assume it is the title of the document and remove it from the TOC.
216216
if len(nested) == 1 && len(nested[0].Children) > 0 {
217217
nested = nested[0].Children
@@ -359,7 +359,7 @@ func transformHeadingsToHTML(doc *markdown.Document) {
359359
htmltag := &markdown.HTMLBlock{}
360360
var buf bytes.Buffer
361361
// TODO(matloob): Do we want the div and h elements to have analogous classes?
362-
// Currently we're using newLevel for the div's class but n.Level for the h element's
362+
// Currently we're using newLevel for the div's class but heading.Level for the h element's
363363
// class.
364364
if newLevel > 6 {
365365
fmt.Fprintf(&buf, `<div class="h%d" role="heading" aria-level="%d"`, newLevel, heading.Level)

internal/frontend/search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ func shouldDefaultToSymbolSearch(q string) bool {
474474
return !internal.TopLevelDomains[parts[len(parts)-1]]
475475
}
476476
// If a user searches for "Unmarshal", assume that they are searching for
477-
// the symbol name "Unmarshal", not the package unmarshal.
477+
// the symbol name "Unmarshal", not a package named "unmarshal".
478478
return isCapitalized(q)
479479
}
480480

internal/frontend/versions/versions.go

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

internal/godoc/dochtml/internal/render/synopsis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestOneLineNode(t *testing.T) {
6767
)
6868
6969
type Struct struct {
70-
// Some commment
70+
// Some comment
7171
7272
// Another comment.
7373
Field int

internal/proxy/proxytest/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type Module struct {
2020
}
2121

2222
// Some module proxies incorrectly return a space after the version. Tests may
23-
// simulate that that behavior by giving m.Version a space suffix. This function
23+
// simulate that behavior by giving m.Version a space suffix. This function
2424
// will always, however, return the correct form for the version.
2525
func (m *Module) TidyVersion() string {
2626
return strings.TrimSpace(m.Version)

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

Lines changed: 3 additions & 3 deletions
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
@@ -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.

0 commit comments

Comments
 (0)