Skip to content

Commit 31f8a05

Browse files
committed
Fix doc tests
1 parent b6baf75 commit 31f8a05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_reflect/src/utility.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl<T: TypedProperty> Default for NonGenericTypeCell<T> {
135135
///
136136
/// struct Foo<T>(T);
137137
///
138-
/// impl<T: Reflect + TypePath> Typed for Foo<T> {
138+
/// impl<T: Reflect + Typed + TypePath> Typed for Foo<T> {
139139
/// fn type_info() -> &'static TypeInfo {
140140
/// static CELL: GenericTypeInfoCell = GenericTypeInfoCell::new();
141141
/// CELL.get_or_insert::<Self, _>(|| {
@@ -149,7 +149,7 @@ impl<T: TypedProperty> Default for NonGenericTypeCell<T> {
149149
/// # fn type_path() -> &'static str { todo!() }
150150
/// # fn short_type_path() -> &'static str { todo!() }
151151
/// # }
152-
/// # impl<T: Reflect + TypePath> Reflect for Foo<T> {
152+
/// # impl<T: Reflect + Typed + TypePath> Reflect for Foo<T> {
153153
/// # fn get_represented_type_info(&self) -> Option<&'static TypeInfo> { todo!() }
154154
/// # fn into_any(self: Box<Self>) -> Box<dyn Any> { todo!() }
155155
/// # fn as_any(&self) -> &dyn Any { todo!() }

0 commit comments

Comments
 (0)