diff options
| author | mat <git@matdoes.dev> | 2025-05-31 08:56:17 +0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-05-30 19:22:09 -0845 |
| commit | f27c87b291a920376e006a470efb353dee46ed17 (patch) | |
| tree | f1720081b856c5b7b96ab8111e6de4233f884e75 /azalea-world/src | |
| parent | e37524899eef8a0034faee35cef4bbf1ba779a7d (diff) | |
| download | azalea-drasl-f27c87b291a920376e006a470efb353dee46ed17.tar.xz | |
more formatting fixes
Diffstat (limited to 'azalea-world/src')
| -rw-r--r-- | azalea-world/src/find_blocks.rs | 5 | ||||
| -rw-r--r-- | azalea-world/src/iterators.rs | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/azalea-world/src/find_blocks.rs b/azalea-world/src/find_blocks.rs index 967f20ec..1215549b 100644 --- a/azalea-world/src/find_blocks.rs +++ b/azalea-world/src/find_blocks.rs @@ -20,7 +20,10 @@ impl Instance { /// /// ``` /// # fn example(client: &azalea_client::Client) { - /// client.world().read().find_block(client.position(), &azalea_registry::Block::Chest.into()); + /// client + /// .world() + /// .read() + /// .find_block(client.position(), &azalea_registry::Block::Chest.into()); /// # } /// ``` pub fn find_block( diff --git a/azalea-world/src/iterators.rs b/azalea-world/src/iterators.rs index acb76cf6..3362487b 100644 --- a/azalea-world/src/iterators.rs +++ b/azalea-world/src/iterators.rs @@ -11,7 +11,7 @@ use azalea_core::position::{BlockPos, ChunkPos}; /// /// let mut iter = BlockIterator::new(BlockPos::default(), 4); /// for block_pos in iter { -/// println!("{:?}", block_pos); +/// println!("{:?}", block_pos); /// } /// ``` pub struct BlockIterator { @@ -86,7 +86,7 @@ impl Iterator for BlockIterator { /// /// let mut iter = SquareChunkIterator::new(ChunkPos::default(), 4); /// for chunk_pos in iter { -/// println!("{:?}", chunk_pos); +/// println!("{:?}", chunk_pos); /// } /// ``` pub struct SquareChunkIterator { @@ -123,11 +123,11 @@ impl SquareChunkIterator { /// /// let mut iter = SquareChunkIterator::new(ChunkPos::default(), 2); /// while let Some(chunk_pos) = iter.next() { - /// println!("{:?}", chunk_pos); + /// println!("{:?}", chunk_pos); /// } /// iter.set_max_distance(4); /// while let Some(chunk_pos) = iter.next() { - /// println!("{:?}", chunk_pos); + /// println!("{:?}", chunk_pos); /// } /// ``` pub fn set_max_distance(&mut self, max_distance: u32) { @@ -174,7 +174,7 @@ impl Iterator for SquareChunkIterator { /// /// let mut iter = ChunkIterator::new(ChunkPos::default(), 4); /// for chunk_pos in iter { -/// println!("{:?}", chunk_pos); +/// println!("{:?}", chunk_pos); /// } /// ``` pub struct ChunkIterator { |
