aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/builder.rs13
-rw-r--r--azalea/src/swarm/builder.rs4
2 files changed, 9 insertions, 8 deletions
diff --git a/azalea/src/builder.rs b/azalea/src/builder.rs
index d0318424..91fb9d5e 100644
--- a/azalea/src/builder.rs
+++ b/azalea/src/builder.rs
@@ -11,8 +11,8 @@ use crate::{
swarm::{self, SwarmBuilder},
};
-/// A builder for creating new [`Client`]s. This is the recommended way of
-/// making a bot.
+/// A builder for creating new [`Client`](crate::Client)s. This is the
+/// recommended way of making a bot.
///
/// ```no_run
/// # use azalea::prelude::*;
@@ -84,8 +84,9 @@ impl ClientBuilder<NoState, ()> {
}
}
- /// Set the function that's called every time a bot receives an [`Event`].
- /// This is the way to handle normal per-bot events.
+ /// Set the function that's called every time a bot receives an
+ /// [`Event`](crate::Client). This is the way to handle normal per-bot
+ /// events.
///
/// Currently, you can have up to one client handler.
///
@@ -156,8 +157,8 @@ where
self
}
- /// Build this `ClientBuilder` into an actual [`Client`] and join the given
- /// server.
+ /// Build this `ClientBuilder` into an actual [`Client`](crate::Client) and
+ /// join the given server.
///
/// If the client can't join, it'll keep retrying forever until it can.
///
diff --git a/azalea/src/swarm/builder.rs b/azalea/src/swarm/builder.rs
index 412ec67e..4eae7eab 100644
--- a/azalea/src/swarm/builder.rs
+++ b/azalea/src/swarm/builder.rs
@@ -137,8 +137,8 @@ where
SS: Default + Send + Sync + Clone + Resource + 'static,
{
/// Set the function that's called every time a bot receives an
- /// [`enum@Event`]. This is the intended way to handle normal per-bot
- /// events.
+ /// [`Event`](crate::Event). This is the intended way to handle
+ /// normal per-bot events.
///
/// Currently you can have up to one handler.
///