From d5f611a1dce27f27b8d8bba00e3101440a363c28 Mon Sep 17 00:00:00 2001 From: Tristan Guichaoua Date: Sat, 10 Feb 2024 15:10:42 +0100 Subject: [PATCH] add note about trait bounds --- crates/bevy_reflect/bevy_reflect_derive/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs b/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs index 1bd2dbe61f06e..f55b0ec50a1c9 100644 --- a/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs +++ b/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs @@ -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); +/// impl_type_path!(::foreign_crate::Goo); /// ``` /// /// On a primitive (note this will not compile for a non-primitive type):