Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit b442ec7

Browse files
committed
Fix misspellings in comments.
Found "retunred" with eyes, the rest with github.com/client9/misspell tool.
1 parent eb44e37 commit b442ec7

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

database/database.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ func (db *Database) getSubdirs(c redis.Conn, path string, pdoc *doc.Package) ([]
467467
return subdirs, err
468468
}
469469

470-
// Get gets the package documenation and sub-directories for the the given
470+
// Get gets the package documentation and sub-directories for the the given
471471
// import path.
472472
func (db *Database) Get(path string) (*doc.Package, []Package, time.Time, error) {
473473
c := db.Pool.Get()
@@ -515,7 +515,7 @@ var deleteScript = redis.NewScript(0, `
515515
return redis.call('HDEL', 'ids', path)
516516
`)
517517

518-
// Delete deletes the documenation for the given import path.
518+
// Delete deletes the documentation for the given import path.
519519
func (db *Database) Delete(path string) error {
520520
c := db.Pool.Get()
521521
defer c.Close()
@@ -776,7 +776,7 @@ func (db *Database) Do(f func(*PackageInfo) error) error {
776776
c.Send("SCAN", cursor, "MATCH", "pkg:*")
777777
c.Flush()
778778
for {
779-
// Recieve previous SCAN.
779+
// Receive previous SCAN.
780780
values, err := redis.Values(c.Receive())
781781
if err != nil {
782782
return err

database/database_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ func TestPutGet(t *testing.T) {
121121
}
122122
actualImporters, err := db.Importers("github.com/user/repo/foo/bar")
123123
if err != nil {
124-
t.Fatalf("db.Importers() retunred error %v", err)
124+
t.Fatalf("db.Importers() returned error %v", err)
125125
}
126126
expectedImporters := []Package{{"github.com/user/repo/foo/bar", "hello"}}
127127
if !reflect.DeepEqual(actualImporters, expectedImporters) {
128128
t.Errorf("db.Importers() = %v, want %v", actualImporters, expectedImporters)
129129
}
130130
actualImports, err := db.Packages(pdoc.Imports)
131131
if err != nil {
132-
t.Fatalf("db.Imports() retunred error %v", err)
132+
t.Fatalf("db.Imports() returned error %v", err)
133133
}
134134
for i := range actualImports {
135135
if actualImports[i].Path == "C" {

deploy/redis.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ repl-disable-tcp-nodelay no
263263
#
264264
# A slave with a low priority number is considered better for promotion, so
265265
# for instance if there are three slaves with priority 10, 100, 25 Sentinel will
266-
# pick the one wtih priority 10, that is the lowest.
266+
# pick the one with priority 10, that is the lowest.
267267
#
268268
# However a special priority of 0 marks the slave as not able to perform the
269269
# role of master, so a slave with priority of 0 will never be selected by

doc/code.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ var predeclared = map[string]int{
7373
type AnnotationKind int16
7474

7575
const (
76-
// Link to export in package specifed by Paths[PathIndex] with fragment
76+
// Link to export in package specified by Paths[PathIndex] with fragment
7777
// Text[strings.LastIndex(Text[Pos:End], ".")+1:End].
7878
LinkAnnotation AnnotationKind = iota
7979

gosrc/gosrc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var testWeb = map[string]string{
4848
`<meta name="go-import" content="">` +
4949
// go-source with wrong number of fields
5050
`<meta name="go-source" content="alice.org/pkg blah">` +
51-
// meta tag for a differnt package
51+
// meta tag for a different package
5252
`<meta name="go-import" content="alice.org/other git https://github.com/alice/other">` +
5353
// meta tag for a different package
5454
`<meta name="go-import" content="alice.org/other git https://github.com/alice/other">` +

0 commit comments

Comments
 (0)