Skip to content

Commit

Permalink
Fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
glindstedt committed Jan 19, 2021
1 parent b80fdc4 commit cff1111
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
//! - Space - Move upward
//!
//! # Example
//! ```rust
//! ```no_run
//! use bevy::prelude::*;
//! use bevy_fly_camera::{FlyCamera, FlyCameraPlugin};
//!
//! fn setup(mut commands: Commands) {
//! fn setup(commands: &mut Commands) {
//! commands
//! .spawn(Camera3dComponents::default())
//! .spawn(Camera3dBundle::default())
//! .with(FlyCamera::default());
//! }
//!
Expand All @@ -32,7 +32,7 @@ use bevy::{input::mouse::MouseMotion, math::clamp, prelude::*};
/// A set of options for initializing a FlyCamera.
/// Attach this component to a [`Camera3dComponents`](https://docs.rs/bevy/0.1.3/bevy/prelude/struct.Camera3dComponents.html) bundle to control it with your mouse and keyboard.
/// # Example
/// ```no_run
/// ```no_compile
/// fn setup(mut commands: Commands) {
/// commands
/// .spawn(Camera3dComponents::default())
Expand Down Expand Up @@ -213,7 +213,7 @@ fn mouse_motion_system(
/**
Include this plugin to add the systems for the FlyCamera bundle.
```no_run
```no_compile
fn main() {
App::build().add_plugin(FlyCameraPlugin);
}
Expand Down

0 comments on commit cff1111

Please sign in to comment.