diff options
| author | mat <github@matdoes.dev> | 2023-03-23 13:55:33 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2023-03-23 13:55:33 +0000 |
| commit | ecb3f2ffd7dd4aa26213844a023e37fab4057ed0 (patch) | |
| tree | 0cd0ea7eec8c05cdc8fae0a3ab15ef7c1402383c /azalea-nbt/README.md | |
| parent | 2a07962af9a318114f38d3afe748a05212cfbd59 (diff) | |
| download | azalea-drasl-ecb3f2ffd7dd4aa26213844a023e37fab4057ed0.tar.xz | |
rename Tag to Nbt
Diffstat (limited to 'azalea-nbt/README.md')
| -rwxr-xr-x | azalea-nbt/README.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/azalea-nbt/README.md b/azalea-nbt/README.md index 97da90cc..c4d25c46 100755 --- a/azalea-nbt/README.md +++ b/azalea-nbt/README.md @@ -5,18 +5,18 @@ A fast NBT serializer and deserializer. # Examples ``` -use azalea_nbt::{Tag, NbtCompound}; +use azalea_nbt::{Nbt, NbtCompound}; use std::io::Cursor; let buf = include_bytes!("../tests/hello_world.nbt"); -let tag = Tag::read(&mut Cursor::new(&buf[..])).unwrap(); +let tag = Nbt::read(&mut Cursor::new(&buf[..])).unwrap(); assert_eq!( tag, - Tag::Compound(NbtCompound::from_iter(vec![( + Nbt::Compound(NbtCompound::from_iter(vec![( "hello world".into(), - Tag::Compound(NbtCompound::from_iter(vec![( + Nbt::Compound(NbtCompound::from_iter(vec![( "name".into(), - Tag::String("Bananrama".into()), + Nbt::String("Bananrama".into()), )])) )])) ); |
