From 1a7fc57a8c8f6611353048a3031c97bcfafa1efa Mon Sep 17 00:00:00 2001 From: A-Walrus <58790821+A-Walrus@users.noreply.github.com> Date: Mon, 11 Sep 2023 22:50:38 +0300 Subject: [PATCH] Fix comment in scene example `FromResources` (#9743) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Comment references non existent `FromResources` instead of `FromWorld` --------- Co-authored-by: Nicola Papale Co-authored-by: Alice Cecile Co-authored-by: François --- examples/scene/scene.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/scene/scene.rs b/examples/scene/scene.rs index 4e2f4aedd8..da09648c24 100644 --- a/examples/scene/scene.rs +++ b/examples/scene/scene.rs @@ -21,7 +21,7 @@ fn main() { // `Reflect` enable a bunch of cool behaviors, so its worth checking out the dedicated `reflect.rs` // example. The `FromWorld` trait determines how your component is constructed when it loads. // For simple use cases you can just implement the `Default` trait (which automatically implements -// FromResources). The simplest registered component just needs these two derives: +// `FromWorld`). The simplest registered component just needs these three derives: #[derive(Component, Reflect, Default)] #[reflect(Component)] // this tells the reflect derive to also reflect component behaviors struct ComponentA {