Skip to content

Commit ad224f8

Browse files
authored
fix typos (#741)
suceed -> succeed documentaiton -> documentation saerching -> searching plattform -> platform
1 parent ded057e commit ad224f8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Diff for: arduino/builder/sketch_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func TestCopyAdditionalFiles(t *testing.T) {
207207
require.Len(t, s1.AdditionalFiles, 1)
208208

209209
// copy the sketch over, create a fake main file we don't care about it
210-
// but we need it for `SketchLoad` to suceed later
210+
// but we need it for `SketchLoad` to succeed later
211211
err = builder.SketchCopyAdditionalFiles(s1, tmp)
212212
require.Nil(t, err)
213213
fakeIno := filepath.Join(tmp, fmt.Sprintf("%s.ino", filepath.Base(tmp)))

Diff for: cli/core/install.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ func runInstallCommand(cmd *cobra.Command, args []string) {
6161
}
6262

6363
for _, platformRef := range platformsRefs {
64-
plattformInstallReq := &rpc.PlatformInstallReq{
64+
platformInstallReq := &rpc.PlatformInstallReq{
6565
Instance: inst,
6666
PlatformPackage: platformRef.PackageName,
6767
Architecture: platformRef.Architecture,
6868
Version: platformRef.Version,
6969
}
70-
_, err := core.PlatformInstall(context.Background(), plattformInstallReq, output.ProgressBar(), output.TaskProgress())
70+
_, err := core.PlatformInstall(context.Background(), platformInstallReq, output.ProgressBar(), output.TaskProgress())
7171
if err != nil {
7272
feedback.Errorf("Error during install: %v", err)
7373
os.Exit(errorcodes.ErrGeneric)

Diff for: cli/core/search.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func runSearchCommand(cmd *cobra.Command, args []string) {
6060

6161
resp, err := core.PlatformSearch(inst.GetId(), arguments, allVersions)
6262
if err != nil {
63-
feedback.Errorf("Error saerching for platforms: %v", err)
63+
feedback.Errorf("Error searching for platforms: %v", err)
6464
os.Exit(errorcodes.ErrGeneric)
6565
}
6666

Diff for: cli/lib/search.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func runSearchCommand(cmd *cobra.Command, args []string) {
5757
Query: (strings.Join(args, " ")),
5858
})
5959
if err != nil {
60-
feedback.Errorf("Error saerching for Library: %v", err)
60+
feedback.Errorf("Error searching for Library: %v", err)
6161
os.Exit(errorcodes.ErrGeneric)
6262
}
6363

Diff for: legacy/builder/utils/utils.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,12 @@ func QuoteCppPath(path *paths.Path) string {
434434
// is a string contained in double quotes, with any backslashes or
435435
// quotes escaped with a backslash. If a valid string was present at the
436436
// start of the given line, returns the unquoted string contents, the
437-
// remaineder of the line (everything after the closing "), and true.
437+
// remainder of the line (everything after the closing "), and true.
438438
// Otherwise, returns the empty string, the entire line and false.
439439
func ParseCppString(line string) (string, string, bool) {
440440
// For details about how these strings are output by gcc, see:
441441
// https://github.com/gcc-mirror/gcc/blob/a588355ab948cf551bc9d2b89f18e5ae5140f52c/libcpp/macro.c#L491-L511
442-
// Note that the documentaiton suggests all non-printable
442+
// Note that the documentation suggests all non-printable
443443
// characters are also escaped, but the implementation does not
444444
// actually do this. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51259
445445
if len(line) < 1 || line[0] != '"' {

0 commit comments

Comments
 (0)