Skip to content

Commit

Permalink
Fix the SpritesheetAnimation doctest still using Vec2 instead of UVec2
Browse files Browse the repository at this point in the history
  • Loading branch information
merwaaan committed Jul 6, 2024
1 parent 2134765 commit 042a959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use crate::animation::AnimationId;
///
/// // ... omitted: load a texture and an atlas layout ...
/// # let texture = assets.load("fake");
/// # let layout = layouts.add(TextureAtlasLayout::new_empty(Vec2::ONE));
/// # let layout = layouts.add(TextureAtlasLayout::new_empty(UVec2::ONE));
///
/// commands.spawn((
/// SpriteSheetBundle {
Expand Down

0 comments on commit 042a959

Please sign in to comment.