mobile: fix some typos

Change-Id: Iaffde6f90b92b1f8b96c76d2bc3d8c312ebb764f
GitHub-Last-Rev: 7413e9537adc1626c76386cf2d47188eeed8342e
GitHub-Pull-Request: golang/mobile#76
Reviewed-on: https://go-review.googlesource.com/c/mobile/+/390014
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
diff --git a/bind/gen.go b/bind/gen.go
index beef4b4..4fedfbe 100644
--- a/bind/gen.go
+++ b/bind/gen.go
@@ -22,7 +22,7 @@
 
 	// varMode describes the lifetime of an argument or
 	// return value. Modes are used to guide the conversion
-	// of string and byte slice values accross the language
+	// of string and byte slice values across the language
 	// barrier. The same conversion mode must be used for
 	// both the conversion before a foreign call and the
 	// corresponding conversion after the call.
@@ -35,7 +35,7 @@
 	// modeTransient are for function arguments that
 	// are not used after the function returns.
 	// Transient byte slices don't need copying
-	// when passed accross the language barrier.
+	// when passed across the language barrier.
 	modeTransient varMode = iota
 	// modeRetained are for returned values and for function
 	// arguments that are used after the function returns.
@@ -54,7 +54,7 @@
 	return buf.String()
 }
 
-// interfaceInfo comes from Init and collects the auxillary information
+// interfaceInfo comes from Init and collects the auxiliary information
 // needed to generate bindings for an exported Go interface in a bound
 // package.
 type interfaceInfo struct {
@@ -63,7 +63,7 @@
 	summary ifaceSummary
 }
 
-// structInfo comes from Init and collects the auxillary information
+// structInfo comes from Init and collects the auxiliary information
 // needed to generate bindings for an exported Go struct in a bound
 // package.
 type structInfo struct {
diff --git a/bind/gengo.go b/bind/gengo.go
index 82aa4fc..8087c7a 100644
--- a/bind/gengo.go
+++ b/bind/gengo.go
@@ -559,7 +559,7 @@
 	return nil
 }
 
-// pkgName retuns the package name and adds the package to the list of
+// pkgName returns the package name and adds the package to the list of
 // imports.
 func (g *goGen) pkgName(pkg *types.Package) string {
 	// The error type has no package
diff --git a/bind/genjava.go b/bind/genjava.go
index e31beba..b197640 100644
--- a/bind/genjava.go
+++ b/bind/genjava.go
@@ -849,7 +849,7 @@
 	if returnsError {
 		if jm != nil {
 			if jm.Throws == "" {
-				g.errorf("%s declares an error return value but the overriden method does not throw", o)
+				g.errorf("%s declares an error return value but the overridden method does not throw", o)
 				return
 			}
 			g.Printf(" throws %s", jm.Throws)
diff --git a/example/flappy/game.go b/example/flappy/game.go
index 40921ab..89b8ae2 100644
--- a/example/flappy/game.go
+++ b/example/flappy/game.go
@@ -28,7 +28,7 @@
 	gopherTile = 1 // which tile the gopher is standing on (0-indexed)
 
 	initScrollV = 1     // initial scroll velocity
-	scrollA     = 0.001 // scroll accelleration
+	scrollA     = 0.001 // scroll acceleration
 	gravity     = 0.1   // gravity
 	jumpV       = -5    // jump velocity
 	flapV       = -1.5  // flap velocity
diff --git a/example/network/main.go b/example/network/main.go
index 111282e..8375eb0 100644
--- a/example/network/main.go
+++ b/example/network/main.go
@@ -16,7 +16,7 @@
 // The gomobile tool auto-generates a default AndroidManifest file by default
 // unless the package directory contains the AndroidManifest.xml. Users can
 // customize app behavior, such as permissions and app name, by providing
-// the AndroidManifest file. This is irrelevent to iOS.
+// the AndroidManifest file. This is irrelevant to iOS.
 //
 // Note: This demo is an early preview of Go 1.5. In order to build this
 // program as an Android APK using the gomobile tool.
diff --git a/internal/binres/binres.go b/internal/binres/binres.go
index 096a6e9..8673063 100644
--- a/internal/binres/binres.go
+++ b/internal/binres/binres.go
@@ -906,7 +906,7 @@
 }
 
 // byNamespace sorts attributes based on string pool position of namespace.
-// Given that "android" always preceeds "" in the pool, this results in the
+// Given that "android" always proceeds "" in the pool, this results in the
 // correct ordering of attributes.
 type byNamespace []*Attribute
 
diff --git a/internal/binres/binres_test.go b/internal/binres/binres_test.go
index 183583b..93e7a18 100644
--- a/internal/binres/binres_test.go
+++ b/internal/binres/binres_test.go
@@ -409,7 +409,7 @@
 		}
 		if err == nil && v == "__" {
 			if !strings.HasPrefix(x, "4.0.") {
-				// as of the time of this writing, the current version of build tools being targetted
+				// as of the time of this writing, the current version of build tools being targeted
 				// reports 4.0.4-1406430. Previously, this was 4.0.3. This number is likely still due
 				// to change so only report error if 4.x incremented.
 				//
diff --git a/internal/binres/sdk.go b/internal/binres/sdk.go
index 5817c75..6c1c343 100644
--- a/internal/binres/sdk.go
+++ b/internal/binres/sdk.go
@@ -10,7 +10,7 @@
 	"path"
 )
 
-// MinSDK is the targetted sdk version for support by package binres.
+// MinSDK is the targeted sdk version for support by package binres.
 const MinSDK = 15
 
 // Requires environment variable ANDROID_HOME to be set.