Skip to content

Commit

Permalink
Fix typos in bevy_reflect readme (bevyengine#5134)
Browse files Browse the repository at this point in the history
# Objective

Fix some typos in bevy_reflect's readme

## Solution

- Change `Foo`'s `d` field to be of type `Vec<Baz>`
- Format `&dyn Reflect` to be monospace
  • Loading branch information
grace125 authored and james7132 committed Jul 2, 2022
1 parent da59bbd commit 5bc5adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_reflect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct Foo {
a: u32,
b: Bar,
c: Vec<i32>,
d: Vec<Bar>,
d: Vec<Baz>,
}

// this will automatically implement the Reflect trait and the TupleStruct trait (because the type is a tuple struct)
Expand Down Expand Up @@ -107,7 +107,7 @@ assert!(foo.reflect_partial_eq(&dynamic_struct).unwrap());

### Trait "reflection"

Call a trait on a given &dyn Reflect reference without knowing the underlying type!
Call a trait on a given `&dyn Reflect` reference without knowing the underlying type!

```rust ignore
#[derive(Reflect)]
Expand Down

0 comments on commit 5bc5adb

Please sign in to comment.