aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/client.rs')
-rw-r--r--azalea-client/src/client.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 8b6932e5..402bebc5 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -378,7 +378,8 @@ impl Client {
/// # Examples
///
/// ```
- /// # fn example(client: &azalea::Client) {
+ /// # use azalea_world::entity::WorldName;
+ /// # fn example(client: &azalea_client::Client) {
/// let world_name = client.component::<WorldName>();
/// # }
pub fn component<T: Component + Clone>(&self) -> T {