that example hardly shows ALL the features
This commit is contained in:
parent
44370dd64e
commit
b02dda3431
|
@ -130,8 +130,8 @@ fn examples() -> LuaResult<()> {
|
||||||
assert_eq!(lua.eval::<String>(r#"join("a", "b", "c")"#)?, "abc");
|
assert_eq!(lua.eval::<String>(r#"join("a", "b", "c")"#)?, "abc");
|
||||||
|
|
||||||
// You can create userdata with methods and metamethods defined on them.
|
// You can create userdata with methods and metamethods defined on them.
|
||||||
// Here's a more complete example that shows all of the features of this API
|
// Here's a more complete example that shows many of the features of this
|
||||||
// together
|
// API together
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
struct Vec2(f32, f32);
|
struct Vec2(f32, f32);
|
||||||
|
|
Loading…
Reference in New Issue