diff options
Diffstat (limited to 'azalea/src/client_impl/mod.rs')
| -rw-r--r-- | azalea/src/client_impl/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea/src/client_impl/mod.rs b/azalea/src/client_impl/mod.rs index ba78fee4..e0718375 100644 --- a/azalea/src/client_impl/mod.rs +++ b/azalea/src/client_impl/mod.rs @@ -355,9 +355,10 @@ impl Client { /// /// ``` /// # use azalea_core::position::ChunkPos; - /// # fn example(client: &azalea::Client) { - /// let world = client.partial_world(); + /// # fn example(client: &azalea::Client) -> azalea::error::AzaleaResult<()> { + /// let world = client.partial_world()?; /// let is_0_0_loaded = world.read().chunks.limited_get(&ChunkPos::new(0, 0)).is_some(); + /// # Ok(()) /// # } pub fn partial_world(&self) -> AzaleaResult<Arc<RwLock<PartialWorld>>> { let world_holder = self.component::<WorldHolder>()?; |
