Browse Source

Rename: OpenBaseLibrary -> OpenBasicLibrary

AnnulusGames 1 year ago
parent
commit
c0b73576e7
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/Lua/Standard/OpenLibExtensions.cs
  2. 1 1
      tests/Lua.Tests/MetatableTests.cs

+ 2 - 2
src/Lua/Standard/OpenLibExtensions.cs

@@ -47,7 +47,7 @@ public static class OpenLibExtensions
         TanhFunction.Instance,
         TanhFunction.Instance,
     ];
     ];
 
 
-    public static void OpenBaseLibrary(this LuaState state)
+    public static void OpenBasicLibrary(this LuaState state)
     {
     {
         state.Environment["_G"] = state.Environment;
         state.Environment["_G"] = state.Environment;
         state.Environment["_VERSION"] = "Lua 5.2";
         state.Environment["_VERSION"] = "Lua 5.2";
@@ -71,7 +71,7 @@ public static class OpenLibExtensions
 
 
         state.Environment["math"] = table;
         state.Environment["math"] = table;
     }
     }
-    
+
     public static void OpenCoroutineLibrary(this LuaState state)
     public static void OpenCoroutineLibrary(this LuaState state)
     {
     {
         var table = new LuaTable(0, 6);
         var table = new LuaTable(0, 6);

+ 1 - 1
tests/Lua.Tests/MetatableTests.cs

@@ -10,7 +10,7 @@ public class MetatableTests
     public void SetUp()
     public void SetUp()
     {
     {
         state = LuaState.Create();
         state = LuaState.Create();
-        state.OpenBaseLibrary();
+        state.OpenBasicLibrary();
     }
     }
 
 
     [Test]
     [Test]