diff --git a/compiler/natives/src/os/file.go b/compiler/natives/src/os/file.go index 37d4275f3..a3683b8b0 100644 --- a/compiler/natives/src/os/file.go +++ b/compiler/natives/src/os/file.go @@ -3,7 +3,7 @@ package os -// WriteString copied from Go 1.16, before it was made more peformant, and unsafe. +// WriteString copied from Go 1.16, before it was made more performant, and unsafe. func (f *File) WriteString(s string) (n int, err error) { return f.Write([]byte(s)) } diff --git a/compiler/natives/src/runtime/runtime.go b/compiler/natives/src/runtime/runtime.go index 41c60876c..9f8425af8 100644 --- a/compiler/natives/src/runtime/runtime.go +++ b/compiler/natives/src/runtime/runtime.go @@ -468,7 +468,7 @@ func StartTrace() error { return nil } func StopTrace() {} func ReadTrace() []byte -// We fake a cgo environment to catch errors. Therefor we have to implement this and always return 0 +// We fake a cgo environment to catch errors. Therefore we have to implement this and always return 0 func NumCgoCall() int64 { return 0 } diff --git a/compiler/prelude/types.js b/compiler/prelude/types.js index 61475454e..9570b2fed 100644 --- a/compiler/prelude/types.js +++ b/compiler/prelude/types.js @@ -59,7 +59,7 @@ var $idKey = x => { }; // Creates constructor functions for array pointer types. Returns a new function -// instace each time to make sure each type is independent of the other. +// instance each time to make sure each type is independent of the other. var $arrayPtrCtor = () => { return function (array) { this.$get = () => { return array; }; diff --git a/tests/map_js_test.go b/tests/map_js_test.go index 64cc8e6f0..c815661ab 100644 --- a/tests/map_js_test.go +++ b/tests/map_js_test.go @@ -69,7 +69,7 @@ func Test_MapStructObjectWrapper(t *testing.T) { stringMap := map[string]string{"key": "value"} - // You cannot wrap a map directly, so put it in a stuct. + // You cannot wrap a map directly, so put it in a struct. type StructWithMap struct { Map map[string]string } diff --git a/tests/misc_test.go b/tests/misc_test.go index a38d91c81..8dc3be924 100644 --- a/tests/misc_test.go +++ b/tests/misc_test.go @@ -900,7 +900,7 @@ func TestReflectSetForEmbed(t *testing.T) { f0 := e.Field(0) e.Set(in) if e.Field(0) != f0 { - t.Fatalf("relfect.Set got %v, want %v", f0, e.Field(0)) + t.Fatalf("reflect.Set got %v, want %v", f0, e.Field(0)) } }