Skip to content

Commit a6b342f

Browse files
committed
Typos
1 parent f797072 commit a6b342f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/bevy_ecs/src/bundle/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ pub trait DynamicBundle {
251251
);
252252

253253
// SAFETY:
254-
// - Must be called exactly once after `get_compoennts` has been called.
254+
// - Must be called exactly once after `get_components` has been called.
255255
// - `ptr` must point to a valid instance of `Self` but does not necessary need to be aligned.
256256
#[doc(hidden)]
257257
unsafe fn apply_effect(ptr: *mut Self, world: &mut EntityWorldMut);

crates/bevy_ecs/src/world/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ impl World {
11861186
// SAFETY: entity and location are valid, as they were just created above
11871187
let mut entity = unsafe { EntityWorldMut::new(self, entity, entity_location) };
11881188
// SAFETY:
1189-
// - This is called exactly once after `get_compoennts` has been called in `spawn_non_existent`.
1189+
// - This is called exactly once after `get_components` has been called in `spawn_non_existent`.
11901190
// - The caller must ensure that `ptr` points to a valid instance of `B`.
11911191
unsafe { B::apply_effect(bundle.cast_mut(), &mut entity) };
11921192
entity

0 commit comments

Comments
 (0)