diff options
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/client.rs | 3 | ||||
| -rw-r--r-- | azalea-client/src/entity_query.rs | 1 |
2 files changed, 3 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 { diff --git a/azalea-client/src/entity_query.rs b/azalea-client/src/entity_query.rs index 7ac0e325..e39a7d2f 100644 --- a/azalea-client/src/entity_query.rs +++ b/azalea-client/src/entity_query.rs @@ -15,6 +15,7 @@ impl Client { /// /// # Examples /// ``` + /// # use azalea_world::entity::WorldName; /// # fn example(mut client: azalea_client::Client) { /// let is_logged_in = client /// .query::<Option<&WorldName>>(&mut client.ecs.lock()) |
