diff --git a/bind/genclasses.go b/bind/genclasses.go index a69d02b..cde17d7 100644 --- a/bind/genclasses.go +++ b/bind/genclasses.go @@ -20,7 +20,6 @@ type ( // ClassGen generates Go and C stubs for Java classes so import statements // on the form // - // // import "Java/classpath/to/Class" // // will work. diff --git a/bind/genjava.go b/bind/genjava.go index f1852a2..0d4976c 100644 --- a/bind/genjava.go +++ b/bind/genjava.go @@ -45,7 +45,7 @@ type javaClassInfo struct { genNoargCon bool } -// Init intializes the embedded Generator and initializes the Java class information +// Init initializes the embedded Generator and initializes the Java class information // needed to generate structs that extend Java classes and interfaces. func (g *JavaGen) Init(classes []*java.Class) { g.Generator.Init() diff --git a/bind/testdata/testpkg/testpkg.go b/bind/testdata/testpkg/testpkg.go index 40203bf..2df04bd 100644 --- a/bind/testdata/testpkg/testpkg.go +++ b/bind/testdata/testpkg/testpkg.go @@ -621,7 +621,7 @@ func NewMyStruct(ctx context.Context) *MyStruct { type Int32Constructed struct{} -// Test that constuctors that clash with the internal proxy constructor +// Test that constructors that clash with the internal proxy constructor // are skipped. func NewInt32Constructed(i int32) *Int32Constructed { return nil diff --git a/cmd/gobind/main.go b/cmd/gobind/main.go index bf1e777..086aa26 100644 --- a/cmd/gobind/main.go +++ b/cmd/gobind/main.go @@ -53,7 +53,7 @@ func run() { // We need to give appropriate environment variables like CC or CXX so that the returned packages no longer have errors. // However, getting such environment variables is difficult or impossible so far. - // Gomobile can obtain such environment variables in env.go, but this logic assumes some condiitons gobind doesn't assume. + // Gomobile can obtain such environment variables in env.go, but this logic assumes some conditions gobind doesn't assume. cfg := &packages.Config{ Mode: packages.NeedName | packages.NeedFiles | packages.NeedImports | packages.NeedDeps | diff --git a/cmd/gomobile/env.go b/cmd/gomobile/env.go index 869e38c..3e89d55 100644 --- a/cmd/gomobile/env.go +++ b/cmd/gomobile/env.go @@ -390,7 +390,7 @@ func ndkRoot(targets ...targetInfo) (string, error) { return "$NDK_PATH", nil } - // Try the ANDROID_NDK_HOME variable. This approach is deprecated, but it + // Try the ANDROID_NDK_HOME variable. This approach is deprecated, but it // has the highest priority because it represents an explicit user choice. if ndkRoot := os.Getenv("ANDROID_NDK_HOME"); ndkRoot != "" { if err := checkNDKRoot(ndkRoot, targets); err != nil { diff --git a/internal/importers/objc/objc.go b/internal/importers/objc/objc.go index df2b257..a7ef1cd 100644 --- a/internal/importers/objc/objc.go +++ b/internal/importers/objc/objc.go @@ -107,7 +107,7 @@ const ( Double ) -// Import returns descriptors for a list of references to +// Import returns descriptors for a list of references to // ObjC protocols and classes. // // The type information is parsed from the output of clang -cc1