2
0
mirror of synced 2025-02-22 14:28:14 +00:00

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>
This commit is contained in:
cuishuang 2022-03-04 09:53:06 +00:00 committed by Hyang-Ah Hana Kim
parent 8a0a1e5073
commit 55113b94f0
8 changed files with 11 additions and 11 deletions

View File

@ -22,7 +22,7 @@ type (
// 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 @@ const (
// 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 @@ func (list ErrorList) Error() string {
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 @@ type interfaceInfo struct {
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 {

View File

@ -559,7 +559,7 @@ func (g *goGen) gen() error {
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

View File

@ -849,7 +849,7 @@ func (g *JavaGen) genFuncSignature(o *types.Func, jm *java.Func, hasThis bool) {
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)

View File

@ -28,7 +28,7 @@ const (
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

View File

@ -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.

View File

@ -906,7 +906,7 @@ func poolTrim(s string) string {
}
// 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

View File

@ -409,7 +409,7 @@ func compareStrings(t *testing.T, a, b []string) error {
}
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.
//

View File

@ -10,7 +10,7 @@ import (
"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.