Skip to content

Commit e7737c0

Browse files
authored
chore: Fix spelling errors (#21)
Correct spelling is a great way to look more professional and demonstrate higher quality. And it catches a surprisingly number of actual errors, too. Following up on aws-controllers-k8s/iam-controller#78 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 9537572 commit e7737c0

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.codespellrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[codespell]
2+
skip = .codespellrc,./.git
3+
check-filenames =
4+
check-hidden =
5+
quiet = 2

ATTRIBUTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ syntax/tree.go (from RegexTree.cs and RegexNode.cs): ported literally as possibl
9494

9595
syntax/writer.go (from RegexWriter.cs): ported literally with minor changes to make it more Go-ish.
9696

97-
match.go (from RegexMatch.cs): ported, simplified, and changed to handle Go's lack of inheritence.
97+
match.go (from RegexMatch.cs): ported, simplified, and changed to handle Go's lack of inheritance.
9898

9999
regexp.go (from Regex.cs and RegexOptions.cs): conceptually serves the same "starting point", but is simplified
100100
and changed to handle differences in C# strings and Go strings/runes.

cmd/controller-bootstrap/command/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ func ensureSDKRepo(
114114
return err
115115
}
116116

117-
// Clone repository if it doen't exist
117+
// Clone repository if it doesn't exist
118118
sdkDir = filepath.Join(srcPath, "aws-sdk-go")
119119
if _, err := os.Stat(sdkDir); os.IsNotExist(err) {
120120

121121
ctx, cancel := context.WithTimeout(ctx, defaultGitCloneTimeout)
122122
defer cancel()
123123
err = util.CloneRepository(ctx, sdkDir, sdkRepoURL)
124124
if err != nil {
125-
return fmt.Errorf("canot clone repository: %v", err)
125+
return fmt.Errorf("cannot clone repository: %v", err)
126126
}
127127
}
128128

pkg/util/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727

2828
// LoadRepository loads a repository from the local file system.
2929
// TODO: load repository into a memory filesystem - needs go1.16
30-
// migration or use somethign like https://github.com/spf13/afero
30+
// migration or use something like https://github.com/spf13/afero
3131
func LoadRepository(path string) (*git.Repository, error) {
3232
return git.PlainOpen(path)
3333
}

0 commit comments

Comments
 (0)