Skip to content

Commit ffbd0e5

Browse files
committed
Fix doc tests
1 parent 29bbf95 commit ffbd0e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/bevy_plugin/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
//!
5454
//! ```no_run
5555
//! // src/main.rs
56-
//! use bevy::{prelude::*, utils::Duration};
56+
//! use bevy::prelude::*;
5757
//! use bevy_yarnspinner::prelude::*;
5858
//! // Use the example dialogue view to see the dialogue in action. Requires the `bevy_yarnspinner_example_dialogue_view` crate.
5959
//! // use bevy_yarnspinner_example_dialogue_view::prelude::*;
@@ -79,7 +79,7 @@
7979
//! }
8080
//!
8181
//! fn setup_camera(mut commands: Commands) {
82-
//! commands.spawn(Camera2dBundle::default());
82+
//! commands.spawn(Camera2d::default());
8383
//! }
8484
//!
8585
//! fn spawn_dialogue_runner(mut commands: Commands, project: Res<YarnProject>) {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn main() {
5353
}
5454
5555
fn setup_camera(mut commands: Commands) {
56-
commands.spawn(Camera2dBundle::default());
56+
commands.spawn(Camera2d::default());
5757
}
5858
5959
fn spawn_dialogue_runner(mut commands: Commands, project: Res<YarnProject>) {

0 commit comments

Comments
 (0)