Skip to content

Commit e2a1358

Browse files
authored
Fix README issues (#31)
Fixes some nitpicks introduced by #29.
1 parent 43896e4 commit e2a1358

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ fn show_tooltips(
110110
```
111111

112112
Alternatively, if you expect to only have component implementing the trait for each entity,
113-
you can use the filter [`One`](https://docs.rs/bevy-trait-query/latest/bevy_trait_query/struct.One.html). This has significantly better performance than iterating
113+
you can use the filter [`One`](https://docs.rs/bevy-trait-query/latest/bevy_trait_query/one/struct.One.html). This has significantly better performance than iterating
114114
over all trait impls.
115115

116116
```rust

src/lib.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
//! ```
165165
//!
166166
//! Alternatively, if you expect to only have component implementing the trait for each entity,
167-
//! you can use the filter [`One`](crate::One). This has significantly better performance than iterating
167+
//! you can use the filter [`One`](crate::one::One). This has significantly better performance than iterating
168168
//! over all trait impls.
169169
//!
170170
//! ```ignore
@@ -189,21 +189,6 @@
189189
//! # bevy::ecs::system::assert_is_system(show_tooltips);
190190
//! ```
191191
//!
192-
//! Trait queries support basic change detection filtration. So to get all the components that
193-
//! implement the target trait, and have also changed in some way since the last tick, you can:
194-
//! ```ignore
195-
//! fn show_tooltips(
196-
//! tooltips: Query<ChangedAll<&dyn Tooltip>>
197-
//! // ...
198-
//! ) {
199-
//! for tooltip in &tooltips {
200-
//! println!("changed tool tips: {}", tooltip.tooltip());
201-
//! }
202-
//! }
203-
//! ```
204-
//!
205-
//! Similarly, there exist `ChangedOne`, `AddedOne`, and `AddedAll`.
206-
//!
207192
//! # Performance
208193
//!
209194
//! The performance of trait queries is quite competitive. Here are some benchmarks for simple cases:

0 commit comments

Comments
 (0)