Skip to content

Commit 9315db2

Browse files
Apply suggestions from code review
Co-authored-by: ira <[email protected]>
1 parent 75fa34d commit 9315db2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

crates/bevy_ecs/src/world/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ pub use identifier::WorldId;
7676
/// assert_eq!(resource.value, 0);
7777
/// }
7878
/// #
79-
/// # schedule.add_system_to_stage(Update, read_resource_system.label(first));
80-
/// # schedule.add_system_to_stage(Update, write_resource_system.after(first));
79+
/// # schedule.add_system_to_stage(Update, read_resource_system);
80+
/// # schedule.add_system_to_stage(Update, write_resource_system.after(read_resource_system));
8181
/// # schedule.run_once(&mut world);
8282
/// ```
8383
pub struct World {

examples/ecs/system_sets.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ fn main() {
7272
// This shows that we can modify existing run criteria results.
7373
// Here we create a _not done_ criteria by piping the output of
7474
// the `is_done` system and inverting the output.
75-
// Notice a string literal also works as a label.
7675
.with_run_criteria(RunCriteria::pipe(is_done_label, inverse))
7776
// `collision` and `sfx` are not ordered with respect to
7877
// each other, and may run in any order

0 commit comments

Comments
 (0)