File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1197,7 +1197,7 @@ pub fn call_function_by_name(
11971197/// use mt <- glua.then(glua.table([#(glua.string("__index"), glua.function(fun))]))
11981198/// use _ <- glua.then(glua.call_function(lib.set_metatable(), [tbl, mt]))
11991199///
1200- /// glua.index(tbl, "a_key") |> glua.returning(decode.string)
1200+ /// glua.index(tbl, glua.string( "a_key") ) |> glua.returning(decode.string)
12011201/// })
12021202/// // -> Ok("fixed value")
12031203/// ```
@@ -1228,7 +1228,7 @@ fn do_index(
12281228/// use mt <- glua.then(glua.table([#(glua.string("__newindex"), glua.function(fun))]))
12291229/// use _ <- glua.then(glua.call_function(lib.set_metatable(), [tbl, mt]))
12301230///
1231- /// glua.new_index(tbl, "my_new_key", glua.string("my_new_value"))
1231+ /// glua.new_index(tbl, glua.string( "my_new_key") , glua.string("my_new_value"))
12321232/// })
12331233/// // -> Error(glua.LuaRuntimeException(
12341234/// exception: glua.ErrorCall("this is a read-only table", option.None),
You can’t perform that action at this time.
0 commit comments