Skip to content

Commit

Permalink
doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxyUwU committed Mar 4, 2022
1 parent 52bdff0 commit 68499b4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions crates/bevy_ecs/src/entity/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,6 @@ pub struct Entities {
}

impl Entities {
pub fn meta_len(&self) -> usize {
self.meta.len()
}

/// Reserve entity IDs concurrently.
///
/// Storage for entity generation and location is lazily allocated by calling `flush`.
Expand Down Expand Up @@ -548,6 +544,12 @@ impl Entities {
}
}

/// Accessor for getting the length of the vec in `self.meta`
#[inline]
pub fn meta_len(&self) -> usize {
self.meta.len()
}

#[inline]
pub fn len(&self) -> u32 {
self.len
Expand Down

0 comments on commit 68499b4

Please sign in to comment.