summaryrefslogtreecommitdiff
path: root/engine-ecs/examples/with_local.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine-ecs/examples/with_local.rs')
-rw-r--r--engine-ecs/examples/with_local.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine-ecs/examples/with_local.rs b/engine-ecs/examples/with_local.rs
index 2c04f26..6d54b7a 100644
--- a/engine-ecs/examples/with_local.rs
+++ b/engine-ecs/examples/with_local.rs
@@ -61,9 +61,9 @@ fn main()
.initialize((SayHelloState { cnt: 0 },)),
);
- world.create_entity((SomeData { num: 987_654 }, Name { name: "Bob".to_string() }));
+ world.spawn((SomeData { num: 987_654 }, Name { name: "Bob".to_string() }));
- world.create_entity((SomeData { num: 345 },));
+ world.spawn((SomeData { num: 345 },));
world.step();
world.step();