Skip to content

Commit f63807d

Browse files
committed
* move enums back to luau docs
* add info notice to enums docs stating they arent a built in luau type * fix another luau site url in the scriping section
1 parent 57ba199 commit f63807d

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

content/en-us/scripting/enums.md renamed to content/en-us/luau/enums.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ title: Enums
33
description: A fixed list of items (enumeration).
44
---
55

6+
<Alert severity="info">
7+
Enums are not a [builtin luau type](https://luau.org/typecheck#builtin-types), and exist only in Roblox. This page is located here because Eunms are conceptually similar enough, and are something you will work with all the time in Roblox development.
8+
</Alert>
9+
610
The **enumeration** data type, or `Datatype.Enum`, is a fixed list of items. You can access enums through the global object called `Datatype.Enum`. For a full list of Enums and their items, see [Enums](/reference/engine/enums) in the API Reference.
711

812
## Get enum items

content/en-us/luau/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Luau includes the following data types:
2222
- [Numbers](numbers.md), or `double`, represent double-precision (64-bit) floating-point numbers.
2323
- [Strings](strings.md) are sequences of characters, such as letters, numbers, and symbols.
2424
- [Tables](tables.md) are [arrays](tables.md#arrays) or [dictionaries](tables.md#dictionaries) of any value except `nil`.
25+
- [Enums](enums.md) are fixed lists of items.
2526

2627
Luau is dynamically typed by default. Variables, function parameters, and return values can be any data type. This helps you write code faster because you don't need to provide types for each piece of data. You can still declare explicit types for variables in Luau and enable [strict type checking](type-checking.md) to make type issues obvious and easy to locate.
2728

content/en-us/scripting/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Roblox scripts use the [Luau](https://luau.org) programming language, which is d
1818
- Compared to Lua 5.1, Luau adds performance enhancements and many useful features, including an optional typing system, string interpolation, and generalized iteration for tables.
1919
- All valid Lua 5.1 code is valid Luau code, but the opposite is not true.
2020

21-
Most books and online resources for Lua are still broadly applicable to Luau. For a detailed summary of differences, see [Compatibility](https://luau-lang.org/compatibility) in the Luau documentation. For language syntax, see the [Luau reference](../luau/index.md).
21+
Most books and online resources for Lua are still broadly applicable to Luau. For a detailed summary of differences, see [Compatibility](https://luau.org/compatibility) in the Luau documentation. For language syntax, see the [Luau reference](../luau/index.md).
2222

2323
### Luau basics
2424

0 commit comments

Comments
 (0)