summaryrefslogtreecommitdiff
path: root/ecs/examples/simple.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/examples/simple.rs')
-rw-r--r--ecs/examples/simple.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecs/examples/simple.rs b/ecs/examples/simple.rs
index 6429035..0169062 100644
--- a/ecs/examples/simple.rs
+++ b/ecs/examples/simple.rs
@@ -13,7 +13,7 @@ struct Greeting
greeting: String,
}
-fn say_hello(query: Query<(SomeData, Greeting)>)
+fn say_hello(query: Query<(&SomeData, &Greeting)>)
{
for (data, greeting) in &query {
println!("{}: {}", greeting.greeting, data.num);