Skip to content

Commit

Permalink
doc(bevy_reflect): add note about trait bounds on impl_type_path (#…
Browse files Browse the repository at this point in the history
…11810)

# Objective

- fixes #11651
  • Loading branch information
tguichaoua authored Feb 10, 2024
1 parent 0031391 commit 3367611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_reflect/bevy_reflect_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,10 @@ pub fn impl_from_reflect_value(input: TokenStream) -> TokenStream {
/// impl_type_path!(::foreign_crate::foo::bar::Baz);
/// ```
///
/// On a generic type:
/// On a generic type (this can also accept trait bounds):
/// ```ignore (bevy_reflect is not accessible from this crate)
/// impl_type_path!(::foreign_crate::Foo<T>);
/// impl_type_path!(::foreign_crate::Goo<T: ?Sized>);
/// ```
///
/// On a primitive (note this will not compile for a non-primitive type):
Expand Down

0 comments on commit 3367611

Please sign in to comment.