scripting: fix some doc comments

This commit is contained in:
SeanOMik 2024-02-24 17:57:05 -05:00
parent 388f686917
commit 5a7ac6ad11
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
1 changed files with 3 additions and 3 deletions

View File

@ -62,14 +62,14 @@ pub const FN_NAME_INTERNAL_REFLECT: &str = "__lyra_internal_reflect";
/// local cube_comp = ModelComponent.new(cube) -- annoying to write /// local cube_comp = ModelComponent.new(cube) -- annoying to write
/// ///
/// local pos = Transform.from_translation(Vec3.new(0, 0, -8.0)) /// 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: /// With this function:
/// /// ```lua /// ```lua
/// local cube = world:request_res("assets/cube-texture-embedded.gltf") /// local cube = world:request_res("assets/cube-texture-embedded.gltf")
/// local pos = Transform.from_translation(Vec3.new(0, 0, -8.0)) /// 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"; pub const FN_NAME_INTERNAL_AS_COMPONENT: &str = "__lyra_internal_refl_as_component";