Skip to content

Commit

Permalink
Typo in [ScheduleLabel] derive macro (#11764)
Browse files Browse the repository at this point in the history
[`ScheduleLabel`] derive macro uses "ScheduleName" as the trait name by
mistake. This only affects the error message when a user tries to use
the derive macro on a union type. No other code is affected.
  • Loading branch information
tjamaan authored Feb 7, 2024
1 parent c33b8b9 commit ff77adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ pub fn derive_schedule_label(input: TokenStream) -> TokenStream {
.segments
.push(format_ident!("ScheduleLabel").into());
dyn_eq_path.segments.push(format_ident!("DynEq").into());
derive_label(input, "ScheduleName", &trait_path, &dyn_eq_path)
derive_label(input, "ScheduleLabel", &trait_path, &dyn_eq_path)
}

/// Derive macro generating an impl of the trait `SystemSet`.
Expand Down

0 comments on commit ff77adc

Please sign in to comment.