aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xazalea-block/README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea-block/README.md b/azalea-block/README.md
index a2a72352..d85d5bb1 100755
--- a/azalea-block/README.md
+++ b/azalea-block/README.md
@@ -8,8 +8,9 @@ There's three block types, used for different things. You can (mostly) freely co
```
-# use azalea_block::BlockState;
-let block_state: BlockState = azalea_registry::Block::Jukebox.into();
+# use azalea_block::{Block, BlockState};
+# let block_state = BlockState::from(azalea_registry::Block::Jukebox);
+let block = Box::<dyn Block>::from(block_state);
```
## Block trait