diff --git a/crates/bevy_reflect/README.md b/crates/bevy_reflect/README.md index 30eea5ea19606..b4d470f315482 100644 --- a/crates/bevy_reflect/README.md +++ b/crates/bevy_reflect/README.md @@ -19,7 +19,7 @@ This crate enables you to dynamically interact with Rust types: #[derive(Reflect)] struct Foo { a: u32, - b: Bar + b: Bar, c: Vec, d: Vec, } @@ -31,14 +31,14 @@ struct Bar(String); #[derive(Reflect)] struct Baz { value: f32, -}; +} // We will use this value to illustrate `bevy_reflect` features let mut foo = Foo { a: 1, b: Bar("hello".to_string()), - c: vec![1, 2] - d: vec![Baz { value: 3.14 }] + c: vec![1, 2], + d: vec![Baz { value: 3.14 }], }; ``` @@ -163,4 +163,4 @@ The whole point of Rust is static safety! Why build something that makes it easy * Some problems are inherently dynamic (scripting, some types of serialization / deserialization) * Sometimes the dynamic way is easier -* Sometimes the dynamic way puts less burden on your users to derive a bunch of traits (this was a big motivator for the Bevy project) \ No newline at end of file +* Sometimes the dynamic way puts less burden on your users to derive a bunch of traits (this was a big motivator for the Bevy project)