We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c31366d commit c417105Copy full SHA for c417105
crates/bevy_ecs/src/entity/mod.rs
@@ -200,9 +200,8 @@ pub(crate) enum AllocAtWithoutReplacement {
200
201
impl Entity {
202
/// Construct an [`Entity`] from a raw `index` value and a non-zero `generation` value.
203
- /// Ensure that the generation value is never greater than `0x3FFF_FFFF`.
+ /// Ensure that the masked generation value is never greater than `0x3FFF_FFFF`.
204
#[inline(always)]
205
- #[must_use]
206
pub(crate) const fn from_raw_and_generation(index: u32, generation: NonZeroU32) -> Entity {
207
Self { index, generation }
208
}
0 commit comments