Skip to content

Commit 34296af

Browse files
committed
Slightly improve README snippet formatting
1 parent 1d76d05 commit 34296af

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ to a pixel grid. It works by moving the canvas in the opposite direction of the
3838
use bevy::prelude::*;
3939
use bevy_smooth_pixel_camera::prelude::*;
4040
41-
App::new().add_plugins((
42-
DefaultPlugins.set(ImagePlugin::default_nearest()),
43-
PixelCameraPlugin
44-
)).run();
41+
App::new()
42+
.add_plugins((
43+
DefaultPlugins.set(ImagePlugin::default_nearest()),
44+
PixelCameraPlugin,
45+
))
46+
.run();
4547
```
4648

4749
3. Add a [`PixelCamera`](https://docs.rs/bevy_smooth_pixel_camera/latest/bevy_smooth_pixel_camera/components/struct.PixelCamera.html) to your world.

src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@
2525
//! use bevy::prelude::*;
2626
//! use bevy_smooth_pixel_camera::prelude::*;
2727
//!
28-
//! App::new().add_plugins((
29-
//! DefaultPlugins.set(ImagePlugin::default_nearest()),
30-
//! PixelCameraPlugin
31-
//! )).run();
28+
//! App::new()
29+
//! .add_plugins((
30+
//! DefaultPlugins.set(ImagePlugin::default_nearest()),
31+
//! PixelCameraPlugin,
32+
//! ))
33+
//! .run();
3234
//! ```
3335
//!
3436
//! 3. Add a [`PixelCamera`](crate::components::PixelCamera) to your world.

0 commit comments

Comments
 (0)