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

Correct typos in comments and doc #225

Merged
merged 1 commit into from
Feb 18, 2023
Merged
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The package provides `Analyzer` instance that can be used with
[go/analysis](https://pkg.go.dev/golang.org/x/tools/go/analysis) API.

Currently supported flags are `blank`, `assert`, `exclude`, and `excludeonly`.
Just as the API itself, the analyzer is exprimental and may change in the
Just as the API itself, the analyzer is experimental and may change in the
future.

## Excluding functions
Expand Down
4 changes: 2 additions & 2 deletions errcheck/errcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (c *Checker) CheckPackage(pkg *packages.Package) Result {

ignore := map[string]*regexp.Regexp{}
// Apply SymbolRegexpsByPackage first so that if the same path appears in
// Packages, a more narrow regexp will be superceded by dotStar below.
// Packages, a more narrow regexp will be superseded by dotStar below.
if regexps := c.Exclusions.SymbolRegexpsByPackage; regexps != nil {
for pkg, re := range regexps {
// TODO warn if previous entry overwritten?
Expand Down Expand Up @@ -337,7 +337,7 @@ func (v *visitor) selectorName(call *ast.CallExpr) string {
// names are returned. If the function is package-qualified (like "fmt.Printf()")
// then just that function's fullName is returned.
//
// Otherwise, we walk through all the potentially embeddded interfaces of the receiver
// Otherwise, we walk through all the potentially embedded interfaces of the receiver
// the collect a list of type-qualified function names that we will check.
func (v *visitor) namesForExcludeCheck(call *ast.CallExpr) []string {
sel, fn, ok := v.selectorAndFunc(call)
Expand Down
2 changes: 1 addition & 1 deletion testdata/embedded_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type T struct{}
func (t T) X() {}

type A interface {
B // embeded
B // embedded
}

type B = interface { // B is not a defined type
Expand Down