Skip to content

Commit 68499b4

Browse files
committed
doc comment
1 parent 52bdff0 commit 68499b4

File tree

1 file changed

+6
-4
lines changed
  • crates/bevy_ecs/src/entity

1 file changed

+6
-4
lines changed

crates/bevy_ecs/src/entity/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,6 @@ pub struct Entities {
243243
}
244244

245245
impl Entities {
246-
pub fn meta_len(&self) -> usize {
247-
self.meta.len()
248-
}
249-
250246
/// Reserve entity IDs concurrently.
251247
///
252248
/// Storage for entity generation and location is lazily allocated by calling `flush`.
@@ -548,6 +544,12 @@ impl Entities {
548544
}
549545
}
550546

547+
/// Accessor for getting the length of the vec in `self.meta`
548+
#[inline]
549+
pub fn meta_len(&self) -> usize {
550+
self.meta.len()
551+
}
552+
551553
#[inline]
552554
pub fn len(&self) -> u32 {
553555
self.len

0 commit comments

Comments
 (0)