Skip to content

Commit deb9dcb

Browse files
committed
Fixed example
1 parent 80c850a commit deb9dcb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class Project
6565

6666
public static void Main(String[] args)
6767
{
68-
6968
lua_State L = luaL_newstate();
7069
if (L.Handle == UIntPtr.Zero)
7170
{
@@ -77,18 +76,18 @@ class Project
7776
lua_close(L);
7877

7978
Console.WriteLine("Success");
80-
8179
}
8280

8381
}
8482
```
8583

8684
Example Usage LuaJIT:
8785
```C#
88-
namespace LuaNET;
89-
86+
using LuaJIT;
9087
using static LuaJIT.Lua;
9188

89+
namespace LuaNET;
90+
9291
class Project
9392
{
9493

@@ -102,7 +101,6 @@ class Project
102101

103102
public static void Main(String[] args)
104103
{
105-
106104
lua_State L = luaL_newstate();
107105
if (L.Handle == UIntPtr.Zero)
108106
{
@@ -114,7 +112,6 @@ class Project
114112
lua_close(L);
115113

116114
Console.WriteLine("Success");
117-
118115
}
119116

120117
}

0 commit comments

Comments
 (0)