Skip to content

Commit 9b05f31

Browse files
authored
docs: fix typos (#1039)
1 parent 390b92e commit 9b05f31

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/src/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Functions in Teal should work like you expect, and we have already showed
44
various examples.
55

66
You can declare nominal function types, like we do for records, to avoid
7-
longwinded type declarations, especially when declaring functions that take
7+
long-winded type declarations, especially when declaring functions that take
88
callbacks. This is done with using `function` types, and they can be generic as
99
well:
1010

docs/src/interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A concrete record is a type declared with `record`, which can be used
66
both as a Lua table and as a type. In object-oriented terms, the record
77
itself works as class whose fields work as class attributes,
88
while other tables declared with the record type are objects whose
9-
fields are object atributes. For example:
9+
fields are object attributes. For example:
1010

1111
```lua
1212
local record MyConcreteRecord

docs/src/macroexp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ end
100100
```
101101

102102
At this time, macroexp declarations within records do not allow inference,
103-
so the `function` type needs to be explicitly declared when implementinga
103+
so the `function` type needs to be explicitly declared when implementing a
104104
a field or metamethod as a `macroexp`. This requirement may be dropped in
105105
the future.

docs/src/metamethods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ print((r + s).x) -- prints 32
4040
```
4141

4242
Note that we explicitly declare variables as `Rec` when initializing the
43-
declaration with `setmetatable`. The Teal standard library definiton of
43+
declaration with `setmetatable`. The Teal standard library definition of
4444
`setmetatable` is `function<T>(T, metatable<T>): T`, so declaring the correct
4545
record type in the declaration assigns the record type to the type variable
4646
`T` in the return value of the function call, causing it to propagate to the

0 commit comments

Comments
 (0)