From ca318b560a225539e30e4b4fc5daeb5477ac638a Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Fri, 20 Dec 2024 00:37:27 -0600 Subject: Fix teal example --- html/index.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'html') diff --git a/html/index.html b/html/index.html index b65c90e..53a724c 100644 --- a/html/index.html +++ b/html/index.html @@ -126,15 +126,16 @@ Hello, world!
$ luarocks install tl
-
local function keys(xs: {K:V}):{K}
+					

+local function keys<K,V>(xs: {K:V}):{K}
   local ks = {}
-  for k, v in pairs(xs) do
+  for k, _ in pairs(xs) do
     table.insert(ks, k)
   end
   return ks
 end
 
-local s: {number:string} = keys({ a = 1, b = 2 })
+local s: {integer:string} = keys({ a = 1, b = 2 })
 print(table.concat(s))
 
@@ -149,7 +150,7 @@ ab

By default, Lua4Win will install packages in a user-local location, at %APPDATA%/luarocks. You can instead choose to install system-wide packages for all users with the --tree system flag, these packages will be located at [INSTALLDIR]/luarocks. You may need to be running as an administrator to install to this location.

Lua4Win's luarocks configuration lives at [INSTALLDIR]/config/config-5.1.lua, and is a regular Lua file you can modify.

All of Lua4Win's binary packages are built using mingw64. If you intend to build your own modules they must be built with mingw64 if you want them to interoperate with Lua4Win-distributed Lua.

-

Some of Lua4Win's packages needed patching or modification, source code is generally mirrored at git.lua4.win, and packaging code is kept separate- usually in a

*-packaging
repo.

+

Some of Lua4Win's packages needed patching or modification, source code is generally mirrored at git.lua4.win, and packaging code is kept separate- usually in a *-packaging repo.

-- cgit v1.2.3-55-g6feb