diff --git a/crates/bevy_asset/src/loader.rs b/crates/bevy_asset/src/loader.rs index a494fd0a2c..6853ebf228 100644 --- a/crates/bevy_asset/src/loader.rs +++ b/crates/bevy_asset/src/loader.rs @@ -34,14 +34,16 @@ pub trait AssetLoader: Send + Sync + 'static { /// and scripts. In Bevy, an asset is any struct that has an unique type id, as shown below: /// /// ```rust -/// use bevy_reflect::TypeUuid; +/// use bevy_reflect::{TypePath, TypeUuid}; /// use serde::Deserialize; /// -/// #[derive(Debug, Deserialize, TypeUuid)] +/// #[derive(Debug, Deserialize, TypeUuid, TypePath)] /// #[uuid = "39cadc56-aa9c-4543-8640-a018b74b5052"] /// pub struct CustomAsset { /// pub value: i32, /// } +/// # fn is_asset() {} +/// # is_asset::(); /// ``` /// /// See the `assets/custom_asset.rs` example in the repository for more details.