From 3a1ef3423d60ee9835f9cf497ea25782a31aa75f Mon Sep 17 00:00:00 2001 From: HowJMay Date: Sat, 6 Jun 2020 11:31:26 +0800 Subject: [PATCH] fix typos suceed -> succeed documentaiton -> documentation saerching -> searching plattform -> platform --- arduino/builder/sketch_test.go | 2 +- cli/core/install.go | 4 ++-- cli/core/search.go | 2 +- cli/lib/search.go | 2 +- legacy/builder/utils/utils.go | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arduino/builder/sketch_test.go b/arduino/builder/sketch_test.go index 1c186067a3a..dbe040edae4 100644 --- a/arduino/builder/sketch_test.go +++ b/arduino/builder/sketch_test.go @@ -207,7 +207,7 @@ func TestCopyAdditionalFiles(t *testing.T) { require.Len(t, s1.AdditionalFiles, 1) // copy the sketch over, create a fake main file we don't care about it - // but we need it for `SketchLoad` to suceed later + // but we need it for `SketchLoad` to succeed later err = builder.SketchCopyAdditionalFiles(s1, tmp) require.Nil(t, err) fakeIno := filepath.Join(tmp, fmt.Sprintf("%s.ino", filepath.Base(tmp))) diff --git a/cli/core/install.go b/cli/core/install.go index 011ad7679bd..6bbcb958d32 100644 --- a/cli/core/install.go +++ b/cli/core/install.go @@ -61,13 +61,13 @@ func runInstallCommand(cmd *cobra.Command, args []string) { } for _, platformRef := range platformsRefs { - plattformInstallReq := &rpc.PlatformInstallReq{ + platformInstallReq := &rpc.PlatformInstallReq{ Instance: inst, PlatformPackage: platformRef.PackageName, Architecture: platformRef.Architecture, Version: platformRef.Version, } - _, err := core.PlatformInstall(context.Background(), plattformInstallReq, output.ProgressBar(), output.TaskProgress()) + _, err := core.PlatformInstall(context.Background(), platformInstallReq, output.ProgressBar(), output.TaskProgress()) if err != nil { feedback.Errorf("Error during install: %v", err) os.Exit(errorcodes.ErrGeneric) diff --git a/cli/core/search.go b/cli/core/search.go index 807bc7f216c..7175e3d66bb 100644 --- a/cli/core/search.go +++ b/cli/core/search.go @@ -60,7 +60,7 @@ func runSearchCommand(cmd *cobra.Command, args []string) { resp, err := core.PlatformSearch(inst.GetId(), arguments, allVersions) if err != nil { - feedback.Errorf("Error saerching for platforms: %v", err) + feedback.Errorf("Error searching for platforms: %v", err) os.Exit(errorcodes.ErrGeneric) } diff --git a/cli/lib/search.go b/cli/lib/search.go index c57fb8d0ba0..e0538183f39 100644 --- a/cli/lib/search.go +++ b/cli/lib/search.go @@ -57,7 +57,7 @@ func runSearchCommand(cmd *cobra.Command, args []string) { Query: (strings.Join(args, " ")), }) if err != nil { - feedback.Errorf("Error saerching for Library: %v", err) + feedback.Errorf("Error searching for Library: %v", err) os.Exit(errorcodes.ErrGeneric) } diff --git a/legacy/builder/utils/utils.go b/legacy/builder/utils/utils.go index 077dc02a667..97f4e184655 100644 --- a/legacy/builder/utils/utils.go +++ b/legacy/builder/utils/utils.go @@ -434,12 +434,12 @@ func QuoteCppPath(path *paths.Path) string { // is a string contained in double quotes, with any backslashes or // quotes escaped with a backslash. If a valid string was present at the // start of the given line, returns the unquoted string contents, the -// remaineder of the line (everything after the closing "), and true. +// remainder of the line (everything after the closing "), and true. // Otherwise, returns the empty string, the entire line and false. func ParseCppString(line string) (string, string, bool) { // For details about how these strings are output by gcc, see: // https://github.com/gcc-mirror/gcc/blob/a588355ab948cf551bc9d2b89f18e5ae5140f52c/libcpp/macro.c#L491-L511 - // Note that the documentaiton suggests all non-printable + // Note that the documentation suggests all non-printable // characters are also escaped, but the implementation does not // actually do this. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51259 if len(line) < 1 || line[0] != '"' {