diff options
| author | mat <git@matdoes.dev> | 2023-05-16 23:32:10 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-05-16 23:32:10 -0500 |
| commit | e2f9d59c458bb226e88dca50355dbe49ce7f6fc7 (patch) | |
| tree | ca9afddcd44fb764a2e861028ed2c8db478ad4c5 /azalea/src/swarm | |
| parent | 2ba7b83490f5fb6e40a4e94da743bebe23cd7862 (diff) | |
| download | azalea-drasl-e2f9d59c458bb226e88dca50355dbe49ce7f6fc7.tar.xz | |
better variable naming in doc
Diffstat (limited to 'azalea/src/swarm')
| -rw-r--r-- | azalea/src/swarm/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index f138950f..0bb9f7cd 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -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<()> { |
