Skip to content

Commit cc115b3

Browse files
committed
fix a typo
1 parent bb1a6a8 commit cc115b3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/bevy_derive/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub fn derive_enum_variant_meta(input: TokenStream) -> TokenStream {
8787
/// More complex types must be boxed and identified by their hash
8888
/// - opt in to this by annotating the entire item with `#[app_label(hash)]`.
8989
///
90-
/// Alternatively, you may force a struct or varaint to behave as if
90+
/// Alternatively, you may force a struct or variant to behave as if
9191
/// it were fieldless with `#[app_label(ignore_fields)]`.
9292
#[proc_macro_derive(AppLabel, attributes(app_label))]
9393
pub fn derive_app_label(input: TokenStream) -> TokenStream {

crates/bevy_ecs/macros/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ pub fn derive_world_query(input: TokenStream) -> TokenStream {
441441
/// More complex types must be boxed and identified by their hash
442442
/// - opt in to this by annotating the entire item with `#[system_label(hash)]`.
443443
///
444-
/// Alternatively, you may force a struct or varaint to behave as if
444+
/// Alternatively, you may force a struct or variant to behave as if
445445
/// it were fieldless with `#[system_label(ignore_fields)]`.
446446
#[proc_macro_derive(SystemLabel, attributes(system_label))]
447447
pub fn derive_system_label(input: TokenStream) -> TokenStream {
@@ -464,7 +464,7 @@ pub fn derive_system_label(input: TokenStream) -> TokenStream {
464464
/// More complex types must be boxed and identified by their hash
465465
/// - opt in to this by annotating the entire item with `#[stage_label(hash)]`.
466466
///
467-
/// Alternatively, you may force a struct or varaint to behave as if
467+
/// Alternatively, you may force a struct or variant to behave as if
468468
/// it were fieldless with `#[stage_label(ignore_fields)]`.
469469
#[proc_macro_derive(StageLabel, attributes(stage_label))]
470470
pub fn derive_stage_label(input: TokenStream) -> TokenStream {
@@ -485,7 +485,7 @@ pub fn derive_stage_label(input: TokenStream) -> TokenStream {
485485
/// More complex types must be boxed and identified by their hash
486486
/// - opt in to this by annotating the entire item with `#[ambiguity_set_label(hash)]`.
487487
///
488-
/// Alternatively, you may force a struct or varaint to behave as if
488+
/// Alternatively, you may force a struct or variant to behave as if
489489
/// it were fieldless with `#[ambiguity_set_label(ignore_fields)]`.
490490
#[proc_macro_derive(AmbiguitySetLabel, attributes(ambiguity_set_label))]
491491
pub fn derive_ambiguity_set_label(input: TokenStream) -> TokenStream {
@@ -510,7 +510,7 @@ pub fn derive_ambiguity_set_label(input: TokenStream) -> TokenStream {
510510
/// More complex types must be boxed and identified by their hash
511511
/// - opt in to this by annotating the entire item with `#[run_criteria_label(hash)]`.
512512
///
513-
/// Alternatively, you may force a struct or varaint to behave as if
513+
/// Alternatively, you may force a struct or variant to behave as if
514514
/// it were fieldless with `#[run_criteria_label(ignore_fields)]`.
515515
#[proc_macro_derive(RunCriteriaLabel, attributes(run_criteria_label))]
516516
pub fn derive_run_criteria_label(input: TokenStream) -> TokenStream {

0 commit comments

Comments
 (0)