Skip to content

Commit

Permalink
fix unsafe Query function names (bevyengine#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
cart authored Nov 3, 2020
1 parent 9afe196 commit 1aa832b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/system/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl<'a, Q: HecsQuery> Query<'a, Q> {
/// Gets the query result for the given `entity`
/// # Safety
/// This allows aliased mutability. You must make sure this call does not result in multiple mutable references to the same component
pub unsafe fn entity_unsafe(
pub unsafe fn get_unsafe(
&self,
entity: Entity,
) -> Result<<Q::Fetch as Fetch>::Item, QueryError> {
Expand Down Expand Up @@ -161,7 +161,7 @@ impl<'a, Q: HecsQuery> Query<'a, Q> {
/// the given component type
/// # Safety
/// This allows aliased mutability. You must make sure this call does not result in multiple mutable references to the same component
pub unsafe fn get_unsafe<T: Component>(
pub unsafe fn get_component_unsafe<T: Component>(
&self,
entity: Entity,
) -> Result<Mut<'_, T>, QueryError> {
Expand Down

0 comments on commit 1aa832b

Please sign in to comment.