Skip to content

Commit 05736e1

Browse files
committed
fix: typos
1 parent a41af08 commit 05736e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bevy_lint/src/lints/nursery/camera_modification_in_fixed_update.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::{declare_bevy_lint, declare_bevy_lint_pass, utils::hir_parse::MethodC
99
declare_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

1515
declare_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

Comments
 (0)