Skip to content

Commit 38cf796

Browse files
authored
Update type-checking.md
1 parent 2c679df commit 38cf796

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/en-us/luau/type-checking.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ type Vector2 = {x: number, y: number}
1717

1818
There are three Luau type inference modes that can be set on the first line of a `Class.Script`:
1919

20-
- `--!nocheck` - Don't check types
21-
- `--!nonstrict` - Default mode for all scripts, only asserts variable types if they are explicitly annotated
20+
- `--!nocheck` - Default mode for all scripts; don't check types
21+
- `--!nonstrict` - Only asserts variable types if they are explicitly annotated
2222
- `--!strict` - Asserts all types based off the inferred or explicitly annotated type
2323

24-
The default mode for the type checker is `--!nonstrict`. The other two modes control how strict the type checker is with inferring and checking types for variables and functions. Any type mismatches in scripts are highlighted in the [Script Editor](../studio/script-editor.md) and surfaced as warnings in the [Script Analysis](../studio/script-editor.md#script-analysis) window.
24+
The default mode for the type checker is `--!nocheck`. The other two modes control how strict the type checker is with inferring and checking types for variables and functions. Any type mismatches in scripts are highlighted in the [Script Editor](../studio/script-editor.md) and surfaced as warnings in the [Script Analysis](../studio/script-editor.md#script-analysis) window.
2525

2626
## Types
2727

0 commit comments

Comments
 (0)