Skip to content

Commit 6363a74

Browse files
soqbalice-i-cecileMrGVSV
committed
Grammar nits
Co-authored-by: Alice Cecile <[email protected]> Co-authored-by: Gino Valente <[email protected]>
1 parent 30f4009 commit 6363a74

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/bevy_reflect/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
//! * [`PartialReflect::as_partial_reflect_mut`] for `&mut dyn PartialReflect`
6969
//! * [`PartialReflect::into_partial_reflect`] for `Box<dyn PartialReflect>`
7070
//!
71-
//! For conversion in the other direction --- downcasting `dyn PartialReflect` to `dyn Reflect`,
71+
//! For conversion in the other direction downcasting `dyn PartialReflect` to `dyn Reflect`
7272
//! there are fallible methods:
7373
//! * [`PartialReflect::try_as_reflect`] for `&dyn Reflect`
7474
//! * [`PartialReflect::try_as_reflect_mut`] for `&mut dyn Reflect`

crates/bevy_reflect/src/reflect.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl std::fmt::Display for ReflectKind {
190190
/// [the derive macro for `Reflect`]: bevy_reflect_derive::Reflect
191191
/// [crate-level documentation]: crate
192192
#[diagnostic::on_unimplemented(
193-
message = "`{Self}` can not be introspected",
193+
message = "`{Self}` does not implement `PartialReflect` and cannot be introspected",
194194
note = "consider annotating `{Self}` with `#[derive(Reflect)]`"
195195
)]
196196
pub trait PartialReflect: DynamicTypePath + Send + Sync
@@ -396,7 +396,7 @@ where
396396
/// meaning any type which implements `Reflect` implements `PartialReflect` by definition.
397397
///
398398
/// It's recommended to use [the derive macro] rather than manually implementing this trait.
399-
/// Doing so will automatically implement this trait, [`PartialReflect`] and many other useful traits for reflection,
399+
/// Doing so will automatically implement this trait, [`PartialReflect`], and many other useful traits for reflection,
400400
/// including one of the appropriate subtraits: [`Struct`], [`TupleStruct`] or [`Enum`].
401401
///
402402
/// See the [crate-level documentation] to see how this trait can be used.
@@ -405,7 +405,7 @@ where
405405
/// [the derive macro]: bevy_reflect_derive::Reflect
406406
/// [crate-level documentation]: crate
407407
#[diagnostic::on_unimplemented(
408-
message = "`{Self}` can not be fully reflected",
408+
message = "`{Self}` does not implement `Reflect` and cannot be fully reflected",
409409
note = "consider annotating `{Self}` with `#[derive(Reflect)]`"
410410
)]
411411
pub trait Reflect: PartialReflect + Any {

0 commit comments

Comments
 (0)