We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd3032 commit e1f6e5dCopy full SHA for e1f6e5d
src/lib.rs
@@ -2,15 +2,14 @@
2
extern crate mlua_derive;
3
4
use mlua::prelude::*;
5
-use pulldown_cmark::{Options, Parser};
6
7
-fn hello(_: &Lua, name: String) -> LuaResult<()> {
8
- println!("hello, {}!", name);
9
- Ok(())
+fn hello(_: &Lua, name: String) -> LuaResult<String> {
+ let a: String = String::from(format!("not you {} he he", name));
+ Ok(a)
10
}
11
12
#[lua_module]
13
-fn my_module(lua: &Lua) -> LuaResult<LuaTable> {
+fn libvim_pandoc_syntax(lua: &Lua) -> LuaResult<LuaTable> {
14
let exports = lua.create_table()?;
15
exports.set("hello", lua.create_function(hello)?)?;
16
Ok(exports)
0 commit comments