Skip to content

Commit dc56e1d

Browse files
joseph-giomockersf
andcommitted
Apply suggestions from code review
Co-authored-by: François <[email protected]>
1 parent ae0769d commit dc56e1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/examples/derive_label.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ fn main() {
1010
assert_eq!(EnumLabel::One.as_label(), EnumLabel::One.as_label());
1111
assert_ne!(EnumLabel::One.as_label(), EnumLabel::Two.as_label());
1212

13-
// Shockingly, labels annotated with `ignore_fields` ignore their fields.
13+
// Labels annotated with `ignore_fields` ignore their fields.
1414
assert_eq!(WeirdLabel(1).as_label(), WeirdLabel(2).as_label());
1515

16-
// Labels of different types are distinct, even if they look similar.
16+
// Labels don't depend only on the variant name but on the full type
1717
assert_ne!(
1818
GenericLabel::<f64>::One.as_label(),
1919
GenericLabel::<char>::One.as_label(),

0 commit comments

Comments
 (0)