@@ -9,7 +9,7 @@ use crate::{declare_bevy_lint, declare_bevy_lint_pass, utils::hir_parse::MethodC
99declare_bevy_lint ! {
1010 pub CAMERA_MODIFICATION_IN_FIXED_UPDATE ,
1111 super :: Nursery ,
12- "Camera modification in FixedUpdate shedule " ,
12+ "Camera modification in FixedUpdate schedule " ,
1313}
1414
1515declare_bevy_lint_pass ! {
@@ -113,12 +113,12 @@ impl<'tcx> LateLintPass<'tcx> for CameraModificationInFixedUpdate {
113113 // Get the generic argument of the Filter
114114 && let TyKind :: Adt ( _, with_args) = query_filter. kind ( )
115115 // There can only be exactly one argument
116- && let Some ( filter_commponent_arg ) = with_args. iter ( ) . next ( )
116+ && let Some ( filter_component_arg ) = with_args. iter ( ) . next ( )
117117 // Get the type of the component the filter should filter for
118- && let GenericArgKind :: Type ( filter_commponent_ty ) =
119- filter_commponent_arg . unpack ( )
118+ && let GenericArgKind :: Type ( filter_component_ty ) =
119+ filter_component_arg . unpack ( )
120120 // Check if Filter is of type `Camera`
121- && match_type ( cx, filter_commponent_ty , & crate :: paths:: CAMERA )
121+ && match_type ( cx, filter_component_ty , & crate :: paths:: CAMERA )
122122 // At this point we know, that the query_data is related to the Camera
123123 // So we check if at least one query_data is borrowed mutably
124124 && query_data_args. iter ( ) . any ( |mutability|match mutability {
0 commit comments