aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2023-02-10 18:19:06 +0000
committerUbuntu <github@matdoes.dev>2023-02-10 18:19:06 +0000
commit758372f9381e2748999c59b2e1ec6a7b1d9d77a8 (patch)
treea070cc37c09453ac4fbad73dd843a9c054ed4283 /azalea/src
parentf5ae1b97171473c3c2db99d92062a18a8313541e (diff)
downloadazalea-drasl-758372f9381e2748999c59b2e1ec6a7b1d9d77a8.tar.xz
improve docs a bit more and delete potatobot example
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/swarm/mod.rs2
-rw-r--r--azalea/src/swarm/prelude.rs3
2 files changed, 4 insertions, 1 deletions
diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs
index 33402566..dcf412e2 100644
--- a/azalea/src/swarm/mod.rs
+++ b/azalea/src/swarm/mod.rs
@@ -29,7 +29,7 @@ use tokio::sync::mpsc;
/// A swarm is a way to conveniently control many bots at once, while also
/// being able to control bots at an individual level when desired.
///
-/// Swarms are created from [`azalea::SwarmBuilder`].
+/// Swarms are created from [`azalea::swarm::SwarmBuilder`].
///
/// The `S` type parameter is the type of the state for individual bots.
/// It's used to make the [`Swarm::add`] function work.
diff --git a/azalea/src/swarm/prelude.rs b/azalea/src/swarm/prelude.rs
new file mode 100644
index 00000000..18012ebd
--- /dev/null
+++ b/azalea/src/swarm/prelude.rs
@@ -0,0 +1,3 @@
+//! A prelude that re-exports common swarm types in Azalea.
+
+pub use crate::swarm::{Swarm, SwarmBuilder, SwarmEvent};