Skip to content

Commit e3c702f

Browse files
authored
Merge pull request #1288 from kindknow/master
chore: fix some typos in comments
2 parents 95fdb0c + 70635ff commit e3c702f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

compiler/natives/src/os/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
package os
55

6-
// WriteString copied from Go 1.16, before it was made more peformant, and unsafe.
6+
// WriteString copied from Go 1.16, before it was made more performant, and unsafe.
77
func (f *File) WriteString(s string) (n int, err error) {
88
return f.Write([]byte(s))
99
}

compiler/natives/src/runtime/runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ func StartTrace() error { return nil }
468468
func StopTrace() {}
469469
func ReadTrace() []byte
470470

471-
// We fake a cgo environment to catch errors. Therefor we have to implement this and always return 0
471+
// We fake a cgo environment to catch errors. Therefore we have to implement this and always return 0
472472
func NumCgoCall() int64 {
473473
return 0
474474
}

compiler/prelude/types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var $idKey = x => {
5959
};
6060

6161
// Creates constructor functions for array pointer types. Returns a new function
62-
// instace each time to make sure each type is independent of the other.
62+
// instance each time to make sure each type is independent of the other.
6363
var $arrayPtrCtor = () => {
6464
return function (array) {
6565
this.$get = () => { return array; };

tests/map_js_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func Test_MapStructObjectWrapper(t *testing.T) {
6969

7070
stringMap := map[string]string{"key": "value"}
7171

72-
// You cannot wrap a map directly, so put it in a stuct.
72+
// You cannot wrap a map directly, so put it in a struct.
7373
type StructWithMap struct {
7474
Map map[string]string
7575
}

tests/misc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ func TestReflectSetForEmbed(t *testing.T) {
900900
f0 := e.Field(0)
901901
e.Set(in)
902902
if e.Field(0) != f0 {
903-
t.Fatalf("relfect.Set got %v, want %v", f0, e.Field(0))
903+
t.Fatalf("reflect.Set got %v, want %v", f0, e.Field(0))
904904
}
905905
}
906906

0 commit comments

Comments
 (0)