Skip to content

Commit 55113b9

Browse files
cuishuanghyangah
authored andcommitted
mobile: fix some typos
Change-Id: Iaffde6f90b92b1f8b96c76d2bc3d8c312ebb764f GitHub-Last-Rev: 7413e95 GitHub-Pull-Request: #76 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/390014 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Trust: Hyang-Ah Hana Kim <[email protected]>
1 parent 8a0a1e5 commit 55113b9

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

bind/gen.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type (
2222

2323
// varMode describes the lifetime of an argument or
2424
// return value. Modes are used to guide the conversion
25-
// of string and byte slice values accross the language
25+
// of string and byte slice values across the language
2626
// barrier. The same conversion mode must be used for
2727
// both the conversion before a foreign call and the
2828
// corresponding conversion after the call.
@@ -35,7 +35,7 @@ const (
3535
// modeTransient are for function arguments that
3636
// are not used after the function returns.
3737
// Transient byte slices don't need copying
38-
// when passed accross the language barrier.
38+
// when passed across the language barrier.
3939
modeTransient varMode = iota
4040
// modeRetained are for returned values and for function
4141
// arguments that are used after the function returns.
@@ -54,7 +54,7 @@ func (list ErrorList) Error() string {
5454
return buf.String()
5555
}
5656

57-
// interfaceInfo comes from Init and collects the auxillary information
57+
// interfaceInfo comes from Init and collects the auxiliary information
5858
// needed to generate bindings for an exported Go interface in a bound
5959
// package.
6060
type interfaceInfo struct {
@@ -63,7 +63,7 @@ type interfaceInfo struct {
6363
summary ifaceSummary
6464
}
6565

66-
// structInfo comes from Init and collects the auxillary information
66+
// structInfo comes from Init and collects the auxiliary information
6767
// needed to generate bindings for an exported Go struct in a bound
6868
// package.
6969
type structInfo struct {

bind/gengo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ func (g *goGen) gen() error {
559559
return nil
560560
}
561561

562-
// pkgName retuns the package name and adds the package to the list of
562+
// pkgName returns the package name and adds the package to the list of
563563
// imports.
564564
func (g *goGen) pkgName(pkg *types.Package) string {
565565
// The error type has no package

bind/genjava.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ func (g *JavaGen) genFuncSignature(o *types.Func, jm *java.Func, hasThis bool) {
849849
if returnsError {
850850
if jm != nil {
851851
if jm.Throws == "" {
852-
g.errorf("%s declares an error return value but the overriden method does not throw", o)
852+
g.errorf("%s declares an error return value but the overridden method does not throw", o)
853853
return
854854
}
855855
g.Printf(" throws %s", jm.Throws)

example/flappy/game.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const (
2828
gopherTile = 1 // which tile the gopher is standing on (0-indexed)
2929

3030
initScrollV = 1 // initial scroll velocity
31-
scrollA = 0.001 // scroll accelleration
31+
scrollA = 0.001 // scroll acceleration
3232
gravity = 0.1 // gravity
3333
jumpV = -5 // jump velocity
3434
flapV = -1.5 // flap velocity

example/network/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// The gomobile tool auto-generates a default AndroidManifest file by default
1717
// unless the package directory contains the AndroidManifest.xml. Users can
1818
// customize app behavior, such as permissions and app name, by providing
19-
// the AndroidManifest file. This is irrelevent to iOS.
19+
// the AndroidManifest file. This is irrelevant to iOS.
2020
//
2121
// Note: This demo is an early preview of Go 1.5. In order to build this
2222
// program as an Android APK using the gomobile tool.

internal/binres/binres.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ func poolTrim(s string) string {
906906
}
907907

908908
// byNamespace sorts attributes based on string pool position of namespace.
909-
// Given that "android" always preceeds "" in the pool, this results in the
909+
// Given that "android" always proceeds "" in the pool, this results in the
910910
// correct ordering of attributes.
911911
type byNamespace []*Attribute
912912

internal/binres/binres_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func compareStrings(t *testing.T, a, b []string) error {
409409
}
410410
if err == nil && v == "__" {
411411
if !strings.HasPrefix(x, "4.0.") {
412-
// as of the time of this writing, the current version of build tools being targetted
412+
// as of the time of this writing, the current version of build tools being targeted
413413
// reports 4.0.4-1406430. Previously, this was 4.0.3. This number is likely still due
414414
// to change so only report error if 4.x incremented.
415415
//

internal/binres/sdk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"path"
1111
)
1212

13-
// MinSDK is the targetted sdk version for support by package binres.
13+
// MinSDK is the targeted sdk version for support by package binres.
1414
const MinSDK = 15
1515

1616
// Requires environment variable ANDROID_HOME to be set.

0 commit comments

Comments
 (0)