diff --git a/docs/en/src/xplr.util.md b/docs/en/src/xplr.util.md index 9243ff0..0e92116 100644 --- a/docs/en/src/xplr.util.md +++ b/docs/en/src/xplr.util.md @@ -1,6 +1,6 @@ ### xplr.util.version -Get the current xplr version details. +Get the xplr version details. Type: function() -> { major: number, minor: number, patch: number } @@ -115,7 +115,7 @@ xplr.util.from_json([[{"foo": "bar"}]]) Dump Lua value into JSON (i.e. also YAML) string. -Type: function( string ) -> value +Type: function( value ) -> string Example: @@ -146,7 +146,7 @@ xplr.util.from_yaml([[{foo: bar}]]) Dump Lua value into YAML string. -Type: function( string ) -> value +Type: function( value ) -> string Example: diff --git a/src/lua/util.rs b/src/lua/util.rs index dd5940c..2a2b598 100644 --- a/src/lua/util.rs +++ b/src/lua/util.rs @@ -239,7 +239,7 @@ pub fn from_json<'a>(util: Table<'a>, lua: &Lua) -> Result> { /// Dump Lua value into JSON (i.e. also YAML) string. /// -/// Type: function( string ) -> value +/// Type: function( value ) -> string /// /// Example: /// @@ -297,7 +297,7 @@ pub fn from_yaml<'a>(util: Table<'a>, lua: &Lua) -> Result> { /// Dump Lua value into YAML string. /// -/// Type: function( string ) -> value +/// Type: function( value ) -> string /// /// Example: ///