Skip to content

Commit

Permalink
Update content/news/2022-04-12-bevy-0.7/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McNab <[email protected]>
  • Loading branch information
cart and DJMcNab authored Apr 13, 2022
1 parent 0ad0cf5 commit 65d9c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/news/2022-04-12-bevy-0.7/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ fn give_sword(mut query: Query<&mut Items>) {
}
```

Astute `std` doc readers might notice that the Rust team [recommends only using Deref/DerefMut for smart pointers, to avoid confusion](https://doc.rust-lang.org/std/ops/trait.Deref.html). Components like `Items` _are not_ smart pointers. We personally don't care. This pattern works, it is already widely used in the Rust ecosystem, and Good UX Comes First.
Astute `std` doc readers might notice that the Rust team [recommends only using `Deref`/`DerefMut` for smart pointers, to avoid confusion](https://doc.rust-lang.org/std/ops/trait.Deref.html). Components like `Items` _are not_ smart pointers. We choose to ignore this advice, as this pattern works, is already widely used in the Rust ecosystem, and Good UX Comes First.

## WorldQuery Derives

Expand Down

0 comments on commit 65d9c36

Please sign in to comment.