From 5a7ac6ad118dab8daa7112b9097a0f907558ae88 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sat, 24 Feb 2024 17:57:05 -0500 Subject: [PATCH] scripting: fix some doc comments --- lyra-scripting/src/lua/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lyra-scripting/src/lua/mod.rs b/lyra-scripting/src/lua/mod.rs index c068582..09c22d4 100644 --- a/lyra-scripting/src/lua/mod.rs +++ b/lyra-scripting/src/lua/mod.rs @@ -62,14 +62,14 @@ pub const FN_NAME_INTERNAL_REFLECT: &str = "__lyra_internal_reflect"; /// local cube_comp = ModelComponent.new(cube) -- annoying to write /// /// local pos = Transform.from_translation(Vec3.new(0, 0, -8.0)) -/// local e = world:spawn(pos, cube_comp) +/// world:spawn(pos, cube_comp) /// ``` /// /// With this function: -/// /// ```lua +/// ```lua /// local cube = world:request_res("assets/cube-texture-embedded.gltf") /// local pos = Transform.from_translation(Vec3.new(0, 0, -8.0)) -/// local e = world:spawn(pos, cube) +/// world:spawn(pos, cube) /// ``` pub const FN_NAME_INTERNAL_AS_COMPONENT: &str = "__lyra_internal_refl_as_component";