Skip to content

Commit 879b586

Browse files
authored
Apply suggestions from code review
1 parent f30f3f0 commit 879b586

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 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` - Default mode for all scripts; don't check types
21-
- `--!nonstrict` - Only asserts variable types if they are explicitly annotated
22-
- `--!strict` - Asserts all types based off the inferred or explicitly annotated type
20+
- `--!nocheck` — Don't check types.
21+
- `--!nonstrict` Only asserts variable types if they are explicitly annotated.
22+
- `--!strict` Asserts all types based off the inferred or explicitly annotated type.
2323

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.
24+
The `--!nonstrict` and `--!strict` 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)