diff --git a/crates/bevy_reflect/src/lib.rs b/crates/bevy_reflect/src/lib.rs index 9a3530b2d7439..1c5d9d12c6322 100644 --- a/crates/bevy_reflect/src/lib.rs +++ b/crates/bevy_reflect/src/lib.rs @@ -68,7 +68,7 @@ //! * [`PartialReflect::as_partial_reflect_mut`] for `&mut dyn PartialReflect` //! * [`PartialReflect::into_partial_reflect`] for `Box` //! -//! For conversion in the other direction --- downcasting `dyn PartialReflect` to `dyn Reflect`, +//! For conversion in the other direction — downcasting `dyn PartialReflect` to `dyn Reflect` — //! there are fallible methods: //! * [`PartialReflect::try_as_reflect`] for `&dyn Reflect` //! * [`PartialReflect::try_as_reflect_mut`] for `&mut dyn Reflect` diff --git a/crates/bevy_reflect/src/reflect.rs b/crates/bevy_reflect/src/reflect.rs index 113769432d233..4252a7db92539 100644 --- a/crates/bevy_reflect/src/reflect.rs +++ b/crates/bevy_reflect/src/reflect.rs @@ -190,7 +190,7 @@ impl std::fmt::Display for ReflectKind { /// [the derive macro for `Reflect`]: bevy_reflect_derive::Reflect /// [crate-level documentation]: crate #[diagnostic::on_unimplemented( - message = "`{Self}` can not be introspected", + message = "`{Self}` does not implement `PartialReflect` and cannot be introspected", note = "consider annotating `{Self}` with `#[derive(Reflect)]`" )] pub trait PartialReflect: DynamicTypePath + Send + Sync @@ -396,7 +396,7 @@ where /// meaning any type which implements `Reflect` implements `PartialReflect` by definition. /// /// It's recommended to use [the derive macro] rather than manually implementing this trait. -/// Doing so will automatically implement this trait, [`PartialReflect`] and many other useful traits for reflection, +/// Doing so will automatically implement this trait, [`PartialReflect`], and many other useful traits for reflection, /// including one of the appropriate subtraits: [`Struct`], [`TupleStruct`] or [`Enum`]. /// /// See the [crate-level documentation] to see how this trait can be used. @@ -405,7 +405,7 @@ where /// [the derive macro]: bevy_reflect_derive::Reflect /// [crate-level documentation]: crate #[diagnostic::on_unimplemented( - message = "`{Self}` can not be fully reflected", + message = "`{Self}` does not implement `Reflect` and cannot be fully reflected", note = "consider annotating `{Self}` with `#[derive(Reflect)]`" )] pub trait Reflect: PartialReflect + Any {