mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
better variable naming in doc
This commit is contained in:
parent
2ba7b83490
commit
e2f9d59c45
2 changed files with 4 additions and 4 deletions
|
@ -96,10 +96,10 @@ where
|
|||
/// use azalea::{app::PluginGroup, DefaultBotPlugins, DefaultPlugins};
|
||||
/// use bevy_log::LogPlugin;
|
||||
///
|
||||
/// let client = ClientBuilder::new_without_plugins()
|
||||
/// let client_builder = ClientBuilder::new_without_plugins()
|
||||
/// .add_plugins(DefaultPlugins.build().disable::<LogPlugin>())
|
||||
/// .add_plugins(DefaultBotPlugins);
|
||||
/// # client.set_handler(handle);
|
||||
/// # client_builder.set_handler(handle);
|
||||
/// # #[derive(Component, Clone, Default)]
|
||||
/// # pub struct State;
|
||||
/// # async fn handle(mut bot: Client, event: Event, state: State) -> anyhow::Result<()> {
|
||||
|
|
|
@ -102,11 +102,11 @@ where
|
|||
/// use azalea::{app::PluginGroup, DefaultBotPlugins, DefaultPlugins, swarm::{DefaultSwarmPlugins}};
|
||||
/// use bevy_log::LogPlugin;
|
||||
///
|
||||
/// let client = SwarmBuilder::new_without_plugins()
|
||||
/// let swarm_builder = SwarmBuilder::new_without_plugins()
|
||||
/// .add_plugins(DefaultPlugins.build().disable::<LogPlugin>())
|
||||
/// .add_plugins(DefaultBotPlugins)
|
||||
/// .add_plugins(DefaultSwarmPlugins);
|
||||
/// # client.set_handler(handle).set_swarm_handler(swarm_handle);
|
||||
/// # swarm_builder.set_handler(handle).set_swarm_handler(swarm_handle);
|
||||
/// # #[derive(Component, Resource, Clone, Default)]
|
||||
/// # pub struct State;
|
||||
/// # async fn handle(mut bot: Client, event: Event, state: State) -> anyhow::Result<()> {
|
||||
|
|
Loading…
Add table
Reference in a new issue