Browse Source

fix: typo

akeit0 5 days ago
parent
commit
5e44b132b1
2 changed files with 25 additions and 25 deletions
  1. 13 13
      README.md
  2. 12 12
      README_JA.md

+ 13 - 13
README.md

@@ -89,17 +89,17 @@ var isNil = results[0].Type == LuaValueType.Nil;
 
 Below is a table showing the type mapping between Lua and C#.
 
-| Lua               | C#                      |
-|-------------------|-------------------------|
-| `nil`             | `LuaValue.Nil`          |
-| `boolean`         | `bool`                  |
-| `string`          | `string`                |
-| `number`          | `double`, `float`,`int` |
-| `table`           | `LuaTable`              |
-| `function`        | `LuaFunction`           |
-| (light)`userdata` | `object`                |
-| `userdata`        | `ILuaUserData`          |
-| `thread`          | `LuaState`              |
+| Lua               | C#                       |
+|-------------------|--------------------------|
+| `nil`             | `LuaValue.Nil`           |
+| `boolean`         | `bool`                   |
+| `string`          | `string`                 |
+| `number`          | `double`, `float`, `int` |
+| `table`           | `LuaTable`               |
+| `function`        | `LuaFunction`            |
+| (light)`userdata` | `object`                 |
+| `userdata`        | `ILuaUserData`           |
+| `thread`          | `LuaState`               |
 
 When creating a `LuaValue` from the C# side, compatible types are implicitly converted into `LuaValue`.
 
@@ -495,7 +495,7 @@ public interface ILuaModuleLoader
 }
 ```
 
-You can set the `LuaState.ModuleLoader` to change how modules are loaded..
+You can set the `LuaState.ModuleLoader` to change how modules are loaded.
 
 You can also combine multiple loaders using `CompositeModuleLoader.Create(loader1, loader2, ...)`.
 
@@ -511,7 +511,7 @@ Loaded modules are cached in the `package.loaded` table, just like regular Lua.
 ## Sandboxing
 In Lua-CSharp, environment abstraction is provided as `LuaPlatform` for sandboxing.
 ```cs
-var state = LuaState.Create(new new(FileSystem: new FileSystem(),
+var state = LuaState.Create(new LuaPlatform(FileSystem: new FileSystem(),
             OsEnvironment: new SystemOsEnvironment(),
             StandardIO: new ConsoleStandardIO(),
             TimeProvider: TimeProvider.System));

+ 12 - 12
README_JA.md

@@ -89,17 +89,17 @@ var isNil = results[0].Type == LuaValueType.Nil;
 
 Lua-C#間の型の対応を以下に示します。
 
-| Lua               | C#                    |
-|-------------------|-----------------------|
-| `nil`             | `LuaValue.Nil`        |
-| `boolean`         | `bool`                |
-| `string`          | `string`              |
-| `number`          | `double`,`float`,`int` |
-| `table`           | `LuaTable`            |
-| `function`        | `LuaFunction`         |
-| (light)`userdata` | `object`              |
-| `userdata`        | `ILuaUserData`        |
-| `thread`          | `LuaState`            |
+| Lua               | C#                       |
+|-------------------|--------------------------|
+| `nil`             | `LuaValue.Nil`           |
+| `boolean`         | `bool`                   |
+| `string`          | `string`                 |
+| `number`          | `double`, `float`, `int` |
+| `table`           | `LuaTable`               |
+| `function`        | `LuaFunction`            |
+| (light)`userdata` | `object`                 |
+| `userdata`        | `ILuaUserData`           |
+| `thread`          | `LuaState`               |
 
 C#側から`LuaValue`を作成する際には、変換可能な型の場合であれば暗黙的に`LuaValue`に変換されます。
 
@@ -513,7 +513,7 @@ state.ModuleLoader = CompositeModuleLoader.Create(
 ## サンドボックス化
 Lua-CSharpではサンドボックス化のために環境の抽象化を`LuaPlatform`として提供しています。
 ```cs
-var state = LuaState.Create(new new(FileSystem: new FileSystem(),
+var state = LuaState.Create(new LuaPlatform(FileSystem: new FileSystem(),
             OsEnvironment: new SystemOsEnvironment(),
             StandardIO: new ConsoleStandardIO(),
             TimeProvider: TimeProvider.System));