From 77a1259980110b76fd1bfc910eba179e16f086dd Mon Sep 17 00:00:00 2001
From: Jerome Humbert <djeedai@gmail.com>
Date: Sat, 23 Apr 2022 18:16:52 +0100
Subject: [PATCH] Fix `lib.rs` doc to not rely on feature (#13)

Change the example in the `lib.rs` module documentation to not rely on
the `bevy_sprite` feature, to allow building cleanly with the
`--no-default-features` flag. Replace the use of `SpriteBundle` with
`TransformBundle`, which is not behind a feature flag so is alway
available.
---
 src/lib.rs | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/lib.rs b/src/lib.rs
index 6148b6e..adab91f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -57,15 +57,8 @@
 //! );
 //!
 //! commands
-//!     // Spawn a Sprite entity to animate the position of.
-//!     .spawn_bundle(SpriteBundle {
-//!         sprite: Sprite {
-//!             color: Color::RED,
-//!             custom_size: Some(Vec2::new(size, size)),
-//!             ..Default::default()
-//!         },
-//!         ..Default::default()
-//!     })
+//!     // Spawn an entity to animate the position of.
+//!     .spawn_bundle(TransformBundle::default())
 //!     // Add an Animator component to control and execute the animation.
 //!     .insert(Animator::new(tween));
 //! # }
-- 
GitLab