From 0c2914e99804dc991916bb56a38a3f90e5de81d5 Mon Sep 17 00:00:00 2001 From: Junseo Yoo <59751754+joonyoo181@users.noreply.github.com> Date: Tue, 23 Jul 2024 15:10:59 -0700 Subject: [PATCH 1/2] Update docs/user-defined-type-functions.md Co-authored-by: James --- docs/user-defined-type-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-defined-type-functions.md b/docs/user-defined-type-functions.md index 143009b..0e02f69 100644 --- a/docs/user-defined-type-functions.md +++ b/docs/user-defined-type-functions.md @@ -25,7 +25,7 @@ end For instance, the `rawget` type function can be written as: ```luau type function rawget(tbl, prop) - if not typelib.type(tbl) == "table" then + if typelib.type(tbl) ~= "table" then error("First argument is not a table!") -- fails to reduce end From 1643c16d3d299f116c3c176206f77d12388edaf2 Mon Sep 17 00:00:00 2001 From: Junseo Yoo <59751754+joonyoo181@users.noreply.github.com> Date: Wed, 24 Jul 2024 13:58:22 -0700 Subject: [PATCH 2/2] Update docs/user-defined-type-functions.md Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com> --- docs/user-defined-type-functions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/user-defined-type-functions.md b/docs/user-defined-type-functions.md index 0e02f69..a7064db 100644 --- a/docs/user-defined-type-functions.md +++ b/docs/user-defined-type-functions.md @@ -82,9 +82,9 @@ All attributes of newly created typelib are initialized with empty tables / arra | `unknown` | `typelib` | an immutable runtime representation of the built-in type `unknown` | | `never` | `typelib` | an immutable runtime representation of the built-in type `never` | | `any` | `typelib` | an immutable runtime representation of the built-in type `any` | -| `boolean` | `typelib` | returns an immutable runtime representation of the built-in type `boolean` | -| `number` | `typelib` | returns an immutable runtime representation of the built-in type `number` | -| `string` | `typelib` | returns an immutable runtime representation of the built-in type `string` | +| `boolean` | `typelib` | an immutable runtime representation of the built-in type `boolean` | +| `number` | `typelib` | an immutable runtime representation of the built-in type `number` | +| `string` | `typelib` | an immutable runtime representation of the built-in type `string` | | Instance Methods | Return Type | Description | | ------------- | ------------- | ------------- |