diff --git a/cranelift/entity/src/lib.rs b/cranelift/entity/src/lib.rs index 4adf4a42cc..241c03c7ed 100644 --- a/cranelift/entity/src/lib.rs +++ b/cranelift/entity/src/lib.rs @@ -92,7 +92,7 @@ macro_rules! entity_impl { } impl $entity { - /// Return the underlying index value as a `u32`. + /// Create a new instance from a `u32`. #[allow(dead_code)] pub fn from_u32(x: u32) -> Self { debug_assert!(x < $crate::__core::u32::MAX);