Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
doonv committed Aug 16, 2024
1 parent d5d21b1 commit a395577
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@
3. Add the plugins.

```rust,no_run
use bevy::{prelude::*,log::LogPlugin};
use bevy::{prelude::*, log::LogPlugin};
use bevy_dev_console::prelude::*;
App::new()
.add_plugins((
// Start capturing logs before the default plugins initiate.
ConsoleLogPlugin::default(),
// Add the default plugins without the LogPlugin.
// Not removing the LogPlugin will cause a panic!
DefaultPlugins.build().disable::<LogPlugin>(),
// Add the log plugin with the custom log layer
DefaultPlugins.set(LogPlugin {
custom_layer: custom_log_layer,
..default()
}),
// Add the dev console plugin itself.
DevConsolePlugin,
))
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub mod ui;

/// Adds a Developer Console to your Bevy application.
///
/// Requires [ConsoleLogPlugin](logging::log_plugin::ConsoleLogPlugin).
/// Requires [custom_log_layer](logging::custom_log_layer).
pub struct DevConsolePlugin;
impl Plugin for DevConsolePlugin {
fn build(&self, app: &mut App) {
Expand Down

0 comments on commit a395577

Please sign in to comment.