Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
  • Loading branch information
MrGVSV and alice-i-cecile committed Aug 31, 2022
1 parent 5809a1b commit 94814c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_reflect/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ pub use type_uuid::*;

/// A catch-all trait bound by the core reflection traits for easy reflection-based trait bounds.
///
/// > __Note:__ You do _not_ need to implement this trait manually.
/// > It is automatically implemented for all types that implement its supertraits.
/// > And these supertraits are all automatically derived with the [`Reflect`](bevy_reflect_derive::Reflect) derive.
/// You do _not_ need to implement this trait manually.
/// It is automatically implemented for all types that implement its supertraits.
/// And these supertraits are all automatically derived with the [`Reflect`](bevy_reflect_derive::Reflect) derive.
///
/// This should namely be used to bound generic arguments to the necessary traits for reflection.
/// Doing this has the added benefit of reducing migration costs, as a change to the required traits
Expand Down
2 changes: 1 addition & 1 deletion examples/reflection/generic_reflection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn main() {
/// Until the reflection API stabilizes, these trait bounds are liable to change. While we currently
/// only require [`Reflect`] right now, we may eventually require others.
///
/// So rather than adding each trait to our generic arguments manually (and having to update them
/// Rather than adding each trait to our generic arguments manually (and having to update them
/// if the requirements ever change), we can simply use the catch-all trait, [`Reflectable`].
#[derive(Reflect)]
struct MyType<T: Reflectable> {
Expand Down

0 comments on commit 94814c3

Please sign in to comment.