Apply suggestions from code review

Co-authored-by: Arseny Kapoulkine <arseny.kapoulkine@gmail.com>
This commit is contained in:
Alexander McCord 2022-09-26 14:05:17 -07:00 committed by GitHub
parent 8706ff0c92
commit 8cebfb344c
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ local b: unknown = 5
local c: unknown = function() return 5 end
```
Unlike `any`, `unknown` will not allow itself to inhabit into a different type!
Unlike `any`, `unknown` will not allow itself to be used as a different type!
```lua
local function unknown(): unknown
@ -113,7 +113,7 @@ end
## `any` type
`any` is just like `unknown`, except that it allows itself to inhabit into a different type. Essentially, it's an opt-out from the type system entirely.
`any` is just like `unknown`, except that it allows itself to be used as an arbitrary type without further checks or annotations. Essentially, it's an opt-out from the type system entirely.
```lua
local x: any = 5