Skip to content

Commit 6ac1453

Browse files
Merge pull request #370 from nmiyake/fixTypos
Fix typos in comments in _codegen/main.go
2 parents 211175b + 13b9dd4 commit 6ac1453

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_codegen/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This program reads all assertion functions from the assert package and
2-
// automatically generates the corersponding requires and forwarded assertions
2+
// automatically generates the corresponding requires and forwarded assertions
33

44
package main
55

@@ -139,7 +139,7 @@ func analyzeCode(scope *types.Scope, docs *doc.Package) (imports.Importer, []tes
139139
if !ok {
140140
continue
141141
}
142-
// Check function signatuer has at least two arguments
142+
// Check function signature has at least two arguments
143143
sig := fn.Type().(*types.Signature)
144144
if sig.Params().Len() < 2 {
145145
continue
@@ -163,7 +163,7 @@ func analyzeCode(scope *types.Scope, docs *doc.Package) (imports.Importer, []tes
163163
return importer, funcs, nil
164164
}
165165

166-
// parsePackageSource returns the types scope and the package documentation from the pa
166+
// parsePackageSource returns the types scope and the package documentation from the package
167167
func parsePackageSource(pkg string) (*types.Scope, *doc.Package, error) {
168168
pd, err := build.Import(pkg, ".", 0)
169169
if err != nil {

0 commit comments

Comments
 (0)