mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Apply suggestions from code review
This commit is contained in:
parent
0d0c689b87
commit
2fc6854cac
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ The other difference between Luau’s type system and off-the-shelf semantic sub
|
|||
The common case for wanting negated types is in typechecking conditionals:
|
||||
```lua
|
||||
-- initially x has type T
|
||||
if (type(x) == “string”) then
|
||||
if (type(x) == "string") then
|
||||
-- in this branch x has type T & string
|
||||
else
|
||||
-- in this branch x has type T & ~string
|
||||
|
|
Loading…
Add table
Reference in a new issue