mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
Fix example docs on embedded_asset macro (#12003)
# Objective The derive macro wasn't doc-commented, so it showed up in the generated doc as follow: ```rust #[derive(Asset, TypePath)] let shader = asset_server.load::<Shader>("embedded://bevy_rock/render/rock.wgsl"); ``` Which is very confusing ## Solution Comment the `derive` attribute as well
This commit is contained in:
parent
6d547d7ce6
commit
7e782f1edf
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ pub fn _embedded_asset_path(
|
|||
/// # use bevy_asset::{Asset, AssetServer};
|
||||
/// # use bevy_reflect::TypePath;
|
||||
/// # let asset_server: AssetServer = panic!();
|
||||
/// #[derive(Asset, TypePath)]
|
||||
/// # #[derive(Asset, TypePath)]
|
||||
/// # struct Shader;
|
||||
/// let shader = asset_server.load::<Shader>("embedded://bevy_rock/render/rock.wgsl");
|
||||
/// ```
|
||||
|
|
Loading…
Reference in a new issue