Micro typo in bevy_ecs (#15167)

I'm currently reading through the code and docs and found this.
This commit is contained in:
Robert Walter 2024-09-12 08:43:33 +00:00 committed by GitHub
parent 15e246eff8
commit 327e1ddba4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -740,7 +740,7 @@ impl Debug for ComponentDescriptor {
impl ComponentDescriptor { impl ComponentDescriptor {
/// # SAFETY /// # SAFETY
/// ///
/// `x` must points to a valid value of type `T`. /// `x` must point to a valid value of type `T`.
unsafe fn drop_ptr<T>(x: OwningPtr<'_>) { unsafe fn drop_ptr<T>(x: OwningPtr<'_>) {
// SAFETY: Contract is required to be upheld by the caller. // SAFETY: Contract is required to be upheld by the caller.
unsafe { unsafe {