diff --git a/docs/source/Tutorial.md b/docs/source/Tutorial.md index 752b3e23c..70196fd29 100644 --- a/docs/source/Tutorial.md +++ b/docs/source/Tutorial.md @@ -529,7 +529,7 @@ The first step is to import/include the library, generated files, etc. #[allow(dead_code, unused_imports)] #[path = "./monster_generated.rs"] mod monster_generated; - pub use monster_generated::my_game::sample::{get_root_as_monster, + pub use monster_generated::my_game::sample::{root_as_monster, Color, Equipment, Monster, MonsterArgs, Vec3, @@ -652,7 +652,7 @@ which will grow automatically if needed: ~~~{.rs} // Build up a serialized buffer algorithmically. // Initialize it with a capacity of 1024 bytes. - let mut builder = flatbuffers::FlatBufferBuilder::new_with_capacity(1024); + let mut builder = flatbuffers::FlatBufferBuilder::with_capacity(1024); ~~~