From 0d609f0984112d1cc6f0e8e388563f3b492b024d Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Wed, 30 Oct 2024 15:49:25 +0530 Subject: [PATCH] Fix grammar in react lua note and `len` type func argument --- src/content/posts/luau-for-js-devs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/posts/luau-for-js-devs/index.md b/src/content/posts/luau-for-js-devs/index.md index 239a92b..9da6995 100644 --- a/src/content/posts/luau-for-js-devs/index.md +++ b/src/content/posts/luau-for-js-devs/index.md @@ -60,7 +60,7 @@ localeFn("en-gb") // TypeError: Argument of type 'string' is not assignable to p ``` ```luau -type function IsStringOfLength(s, length) +type function IsStringOfLength(s, len) local lenNum = tonumber(len:value()) assert(s:is("singleton") and typeof(s:value()) == "string", "s must be of type string") assert(len:is("singleton") and lenNum ~= nil, "len must be of type number") @@ -137,7 +137,7 @@ The Luau community has developed many libraries to make JavaScript developers fe …and many more which I haven't listed here! :::note -It isn't currently possible for create websites using react-lua, it is currently only used for +It isn't currently possible to create websites using react-lua, it is currently only used for frontend in Roblox game development; but web compatibility is being worked on. :::