Skip to content

Commit

Permalink
Add vector to primitive types (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: aaron <[email protected]>
  • Loading branch information
LordOfSpelunky and aatxe authored Oct 21, 2024
1 parent 47a939f commit aae5156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pages/typecheck.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ local b2: B = a1 -- not ok

## Builtin types

The Luau VM supports 9 primitive types: `nil`, `string`, `number`, `boolean`, `table`, `function`, `thread`, `userdata`, and `buffer`. Of these, `table` and `function` are not represented by name, but have their dedicated syntax as covered in this [syntax document](syntax), and `userdata` is represented by [concrete types](#roblox-types); other types can be specified by their name.
The Luau VM supports 10 primitive types: `nil`, `string`, `number`, `boolean`, `table`, `function`, `thread`, `userdata`, `vector`, and `buffer`. Of these, `table` and `function` are not represented by name, but have their dedicated syntax as covered in this [syntax document](syntax), `userdata` is represented by [concrete types](#roblox-types), while `vector` is not representable by name at all; other types can be specified by their name.

The type checker also provides the builtin types [`unknown`](#unknown-type), [`never`](#never-type), and [`any`](#any-type).

Expand Down

0 comments on commit aae5156

Please sign in to comment.