Skip to content

Commit 9d67edc

Browse files
ameknitealice-i-cecilejames7132mockersf
authored
fix some typos (#12038)
# Objective Split - containing only the fixed typos - #12036 (review) # Migration Guide In `crates/bevy_mikktspace/src/generated.rs` ```rs // before pub struct SGroup { pub iVertexRepresentitive: i32, .. } // after pub struct SGroup { pub iVertexRepresentative: i32, .. } ``` In `crates/bevy_core_pipeline/src/core_2d/mod.rs` ```rs // before Node2D::ConstrastAdaptiveSharpening // after Node2D::ContrastAdaptiveSharpening ``` --------- Co-authored-by: Alice Cecile <[email protected]> Co-authored-by: James Liu <[email protected]> Co-authored-by: François <[email protected]>
1 parent 5d3f66f commit 9d67edc

File tree

34 files changed

+72
-72
lines changed

34 files changed

+72
-72
lines changed

crates/bevy_app/src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,8 +1005,8 @@ impl App {
10051005
/// (conflicting access but indeterminate order) with systems in `set`.
10061006
///
10071007
/// When possible, do this directly in the `.add_systems(Update, a.ambiguous_with(b))` call.
1008-
/// However, sometimes two independant plugins `A` and `B` are reported as ambiguous, which you
1009-
/// can only supress as the consumer of both.
1008+
/// However, sometimes two independent plugins `A` and `B` are reported as ambiguous, which you
1009+
/// can only suppress as the consumer of both.
10101010
#[track_caller]
10111011
pub fn ignore_ambiguity<M1, M2, S1, S2>(
10121012
&mut self,

crates/bevy_asset/src/path.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub enum ParseAssetPathError {
8787
/// Error that occurs when the [`AssetPath::label`] section of a path string contains the [`AssetPath::source`] delimiter `://`. E.g. `source://file.test#bad://label`.
8888
#[error("Asset label must not contain a `://` substring")]
8989
InvalidLabelSyntax,
90-
/// Error that occurs when a path string has an [`AssetPath::source`] delimiter `://` with no characters preceeding it. E.g. `://file.test`.
90+
/// Error that occurs when a path string has an [`AssetPath::source`] delimiter `://` with no characters preceding it. E.g. `://file.test`.
9191
#[error("Asset source must be at least one character. Either specify the source before the '://' or remove the `://`")]
9292
MissingSource,
9393
/// Error that occurs when a path string has an [`AssetPath::label`] delimiter `#` with no characters succeeding it. E.g. `file.test#`
@@ -143,9 +143,9 @@ impl<'a> AssetPath<'a> {
143143
let mut label_range = None;
144144

145145
// Loop through the characters of the passed in &str to accomplish the following:
146-
// 1. Seach for the first instance of the `://` substring. If the `://` substring is found,
146+
// 1. Search for the first instance of the `://` substring. If the `://` substring is found,
147147
// store the range of indices representing everything before the `://` substring as the `source_range`.
148-
// 2. Seach for the last instance of the `#` character. If the `#` character is found,
148+
// 2. Search for the last instance of the `#` character. If the `#` character is found,
149149
// store the range of indices representing everything after the `#` character as the `label_range`
150150
// 3. Set the `path_range` to be everything in between the `source_range` and `label_range`,
151151
// excluding the `://` substring and `#` character.
@@ -165,7 +165,7 @@ impl<'a> AssetPath<'a> {
165165
2 => {
166166
// If we haven't found our first `AssetPath::source` yet, check to make sure it is valid and then store it.
167167
if source_range.is_none() {
168-
// If the `AssetPath::source` containes a `#` character, it is invalid.
168+
// If the `AssetPath::source` contains a `#` character, it is invalid.
169169
if label_range.is_some() {
170170
return Err(ParseAssetPathError::InvalidSourceSyntax);
171171
}
@@ -833,7 +833,7 @@ mod tests {
833833

834834
#[test]
835835
fn test_resolve_implicit_relative() {
836-
// A path with no inital directory separator should be considered relative.
836+
// A path with no initial directory separator should be considered relative.
837837
let base = AssetPath::from("alice/bob#carol");
838838
assert_eq!(
839839
base.resolve("joe/next").unwrap(),

crates/bevy_asset/src/transformer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub trait AssetTransformer: Send + Sync + 'static {
1818
/// The type of [error](`std::error::Error`) which could be encountered by this transformer.
1919
type Error: Into<Box<dyn std::error::Error + Send + Sync + 'static>>;
2020

21-
/// Transformes the given [`TransformedAsset`] to [`AssetTransformer::AssetOutput`].
21+
/// Transforms the given [`TransformedAsset`] to [`AssetTransformer::AssetOutput`].
2222
/// The [`TransformedAsset`]'s `labeled_assets` can be altered to add new Labeled Sub-Assets
2323
/// The passed in `settings` can influence how the `asset` is transformed
2424
fn transform<'a>(
@@ -58,7 +58,7 @@ impl<A: Asset> TransformedAsset<A> {
5858
}
5959
None
6060
}
61-
/// Creates a new [`TransformedAsset`] from `asset`, transfering the `labeled_assets` from this [`TransformedAsset`] to the new one
61+
/// Creates a new [`TransformedAsset`] from `asset`, transferring the `labeled_assets` from this [`TransformedAsset`] to the new one
6262
pub fn replace_asset<B: Asset>(self, asset: B) -> TransformedAsset<B> {
6363
TransformedAsset {
6464
value: asset,

crates/bevy_core_pipeline/src/contrast_adaptive_sharpening/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,17 +142,17 @@ impl Plugin for CASPlugin {
142142
}
143143
{
144144
render_app
145-
.add_render_graph_node::<CASNode>(Core2d, Node2d::ConstrastAdaptiveSharpening)
145+
.add_render_graph_node::<CASNode>(Core2d, Node2d::ContrastAdaptiveSharpening)
146146
.add_render_graph_edge(
147147
Core2d,
148148
Node2d::Tonemapping,
149-
Node2d::ConstrastAdaptiveSharpening,
149+
Node2d::ContrastAdaptiveSharpening,
150150
)
151151
.add_render_graph_edges(
152152
Core2d,
153153
(
154154
Node2d::Fxaa,
155-
Node2d::ConstrastAdaptiveSharpening,
155+
Node2d::ContrastAdaptiveSharpening,
156156
Node2d::EndMainPassPostProcessing,
157157
),
158158
);

crates/bevy_core_pipeline/src/core_2d/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub mod graph {
1919
Tonemapping,
2020
Fxaa,
2121
Upscaling,
22-
ConstrastAdaptiveSharpening,
22+
ContrastAdaptiveSharpening,
2323
EndMainPassPostProcessing,
2424
}
2525
}

crates/bevy_ecs/src/identifier/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use std::fmt;
55

66
/// An Error type for [`super::Identifier`], mostly for providing error
7-
/// handling for convertions of an ID to a type abstracting over the ID bits.
7+
/// handling for conversions of an ID to a type abstracting over the ID bits.
88
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
99
#[non_exhaustive]
1010
pub enum IdentifierError {

crates/bevy_ecs/src/identifier/masks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl IdentifierMask {
6767
let overflowed = lo >> 31;
6868

6969
// SAFETY:
70-
// - Adding the overflow flag will offet overflows to start at 1 instead of 0
70+
// - Adding the overflow flag will offset overflows to start at 1 instead of 0
7171
// - The sum of `0x7FFF_FFFF` + `u32::MAX` + 1 (overflow) == `0x7FFF_FFFF`
7272
// - If the operation doesn't overflow at 31 bits, no offsetting takes place
7373
unsafe { NonZeroU32::new_unchecked(lo.wrapping_add(overflowed) & HIGH_MASK) }

crates/bevy_ecs/src/query/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl<'w, D: QueryData, F: QueryFilter> QueryBuilder<'w, D, F> {
210210
}
211211

212212
/// Transmute the existing builder adding required accesses.
213-
/// This will maintain all exisiting accesses.
213+
/// This will maintain all existing accesses.
214214
///
215215
/// If including a filter type see [`Self::transmute_filtered`]
216216
pub fn transmute<NewD: QueryData>(&mut self) -> &mut QueryBuilder<'w, NewD> {
@@ -233,7 +233,7 @@ impl<'w, D: QueryData, F: QueryFilter> QueryBuilder<'w, D, F> {
233233

234234
self.extend_access(access);
235235
// SAFETY:
236-
// - We have included all required acceses for NewQ and NewF
236+
// - We have included all required accesses for NewQ and NewF
237237
// - The layout of all QueryBuilder instances is the same
238238
unsafe { std::mem::transmute(self) }
239239
}

crates/bevy_ecs/src/query/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl<'w, 's, D: QueryData, F: QueryFilter> QueryIter<'w, 's, D, F> {
5959
Func: FnMut(D::Item<'w>),
6060
{
6161
// SAFETY: Caller assures that D::IS_DENSE and F::IS_DENSE are true, that table matches D and F
62-
// and all indicies in rows are in range.
62+
// and all indices in rows are in range.
6363
unsafe {
6464
self.fold_over_table_range((), &mut |_, item| func(item), table, rows);
6565
}

crates/bevy_ecs/src/reflect/from_world.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Definitions for [`FromWorld`] reflection.
2-
//! This allows creating instaces of types that are known only at runtime and
2+
//! This allows creating instances of types that are known only at runtime and
33
//! require an `&mut World` to be initialized.
44
//!
55
//! This module exports two types: [`ReflectFromWorldFns`] and [`ReflectFromWorld`].

crates/bevy_ecs/src/schedule/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ where
419419
///
420420
/// Ordering constraints will be applied between the successive elements.
421421
///
422-
/// If the preceeding node on a edge has deferred parameters, a [`apply_deferred`](crate::schedule::apply_deferred)
422+
/// If the preceding node on a edge has deferred parameters, a [`apply_deferred`](crate::schedule::apply_deferred)
423423
/// will be inserted on the edge. If this behavior is not desired consider using
424424
/// [`chain_ignore_deferred`](Self::chain_ignore_deferred) instead.
425425
fn chain(self) -> SystemConfigs {

crates/bevy_ecs/src/schedule/schedule.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fn make_executor(kind: ExecutorKind) -> Box<dyn SystemExecutor> {
161161
/// Chain systems into dependencies
162162
#[derive(PartialEq)]
163163
pub enum Chain {
164-
/// Run nodes in order. If there are deferred parameters in preceeding systems a
164+
/// Run nodes in order. If there are deferred parameters in preceding systems a
165165
/// [`apply_deferred`] will be added on the edge.
166166
Yes,
167167
/// Run nodes in order. This will not add [`apply_deferred`] between nodes.

crates/bevy_ecs/src/system/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ impl<'w, 's, D: QueryData, F: QueryFilter> Query<'w, 's, D, F> {
12901290
/// ## Allowed Transmutes
12911291
///
12921292
/// Besides removing parameters from the query, you can also
1293-
/// make limited changes to the types of paramters.
1293+
/// make limited changes to the types of parameters.
12941294
///
12951295
/// * Can always add/remove `Entity`
12961296
/// * `Ref<T>` <-> `&T`

crates/bevy_ecs/src/system/system_param.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,8 +697,8 @@ unsafe impl SystemParam for &'_ World {
697697
/// # use bevy_ecs::system::assert_is_system;
698698
/// struct Config(u32);
699699
/// #[derive(Resource)]
700-
/// struct Myu32Wrapper(u32);
701-
/// fn reset_to_system(value: Config) -> impl FnMut(ResMut<Myu32Wrapper>) {
700+
/// struct MyU32Wrapper(u32);
701+
/// fn reset_to_system(value: Config) -> impl FnMut(ResMut<MyU32Wrapper>) {
702702
/// move |mut val| val.0 = value.0
703703
/// }
704704
///

crates/bevy_gizmos/src/primitives/dim3.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -698,9 +698,9 @@ pub struct ConicalFrustum3dBuilder<'a, 'w, 's, T: GizmoConfigGroup> {
698698

699699
// Center of conical frustum, half-way between the top and the bottom
700700
position: Vec3,
701-
// Rotation of the conical frustrum
701+
// Rotation of the conical frustum
702702
//
703-
// default orientation is: conical frustrum base shape normals are aligned with `Vec3::Y` axis
703+
// default orientation is: conical frustum base shape normals are aligned with `Vec3::Y` axis
704704
rotation: Quat,
705705
// Color of the conical frustum
706706
color: Color,
@@ -760,7 +760,7 @@ impl<T: GizmoConfigGroup> Drop for ConicalFrustum3dBuilder<'_, '_, '_, T> {
760760
let half_height = *height * 0.5;
761761
let normal = *rotation * Vec3::Y;
762762

763-
// draw the two circles of the conical frustrum
763+
// draw the two circles of the conical frustum
764764
[(*radius_top, half_height), (*radius_bottom, -half_height)]
765765
.into_iter()
766766
.for_each(|(radius, height)| {
@@ -774,7 +774,7 @@ impl<T: GizmoConfigGroup> Drop for ConicalFrustum3dBuilder<'_, '_, '_, T> {
774774
);
775775
});
776776

777-
// connect the two circles of the conical frustrum
777+
// connect the two circles of the conical frustum
778778
circle_coordinates(*radius_top, *segments)
779779
.map(move |p| Vec3::new(p.x, half_height, p.y))
780780
.zip(
@@ -802,7 +802,7 @@ pub struct Torus3dBuilder<'a, 'w, 's, T: GizmoConfigGroup> {
802802

803803
// Center of the torus
804804
position: Vec3,
805-
// Rotation of the conical frustrum
805+
// Rotation of the conical frustum
806806
//
807807
// default orientation is: major circle normal is aligned with `Vec3::Y` axis
808808
rotation: Quat,

crates/bevy_input/src/keyboard.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// the W3C short notice apply to the `KeyCode` enums and their variants and the
1717
// documentation attached to their variants.
1818

19-
// --------- BEGGINING OF W3C LICENSE --------------------------------------------------------------
19+
// --------- BEGINNING OF W3C LICENSE --------------------------------------------------------------
2020
//
2121
// License
2222
//
@@ -51,7 +51,7 @@
5151
//
5252
// --------- END OF W3C LICENSE --------------------------------------------------------------------
5353

54-
// --------- BEGGINING OF W3C SHORT NOTICE ---------------------------------------------------------
54+
// --------- BEGINNING OF W3C SHORT NOTICE ---------------------------------------------------------
5555
//
5656
// winit: https://github.com/rust-windowing/winit
5757
//
@@ -886,7 +886,7 @@ pub enum Key {
886886
Standby,
887887
/// The WakeUp key. (`KEYCODE_WAKEUP`)
888888
WakeUp,
889-
/// Initate the multi-candidate mode.
889+
/// Initiate the multi-candidate mode.
890890
AllCandidates,
891891
/// The Alphanumeric key (on linux/web)
892892
Alphanumeric,

crates/bevy_macro_utils/src/bevy_manifest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl BevyManifest {
103103
///
104104
/// # Panics
105105
///
106-
/// Will panic if the path is not able to be parsed. For a non-panicing option, see [`try_parse_str`]
106+
/// Will panic if the path is not able to be parsed. For a non-panicking option, see [`try_parse_str`]
107107
///
108108
/// [`try_parse_str`]: Self::try_parse_str
109109
pub fn parse_str<T: syn::parse::Parse>(path: &str) -> T {

crates/bevy_mikktspace/src/generated.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl STriInfo {
133133
pub struct SGroup {
134134
pub iNrFaces: i32,
135135
pub pFaceIndices: *mut i32,
136-
pub iVertexRepresentitive: i32,
136+
pub iVertexRepresentative: i32,
137137
pub bOrientPreservering: bool,
138138
}
139139

@@ -142,7 +142,7 @@ impl SGroup {
142142
Self {
143143
iNrFaces: 0,
144144
pFaceIndices: null_mut(),
145-
iVertexRepresentitive: 0,
145+
iVertexRepresentative: 0,
146146
bOrientPreservering: false,
147147
}
148148
}
@@ -560,7 +560,7 @@ unsafe fn GenerateTSpaces<I: Geometry>(
560560
piTriListIn,
561561
pTriInfos,
562562
geometry,
563-
(*pGroup).iVertexRepresentitive,
563+
(*pGroup).iVertexRepresentative,
564564
);
565565
iUniqueSubGroups += 1
566566
}
@@ -634,7 +634,7 @@ unsafe fn EvalTspace<I: Geometry>(
634634
mut piTriListIn: *const i32,
635635
mut pTriInfos: *const STriInfo,
636636
geometry: &mut I,
637-
iVertexRepresentitive: i32,
637+
iVertexRepresentative: i32,
638638
) -> STSpace {
639639
let mut res: STSpace = STSpace {
640640
vOs: Vec3::new(0.0, 0.0, 0.0),
@@ -675,11 +675,11 @@ unsafe fn EvalTspace<I: Geometry>(
675675
let mut i0: i32 = -1i32;
676676
let mut i1: i32 = -1i32;
677677
let mut i2: i32 = -1i32;
678-
if *piTriListIn.offset((3i32 * f + 0i32) as isize) == iVertexRepresentitive {
678+
if *piTriListIn.offset((3i32 * f + 0i32) as isize) == iVertexRepresentative {
679679
i = 0i32
680-
} else if *piTriListIn.offset((3i32 * f + 1i32) as isize) == iVertexRepresentitive {
680+
} else if *piTriListIn.offset((3i32 * f + 1i32) as isize) == iVertexRepresentative {
681681
i = 1i32
682-
} else if *piTriListIn.offset((3i32 * f + 2i32) as isize) == iVertexRepresentitive {
682+
} else if *piTriListIn.offset((3i32 * f + 2i32) as isize) == iVertexRepresentative {
683683
i = 2i32
684684
}
685685
index = *piTriListIn.offset((3i32 * f + i) as isize);
@@ -831,7 +831,7 @@ unsafe fn Build4RuleGroups(
831831
let ref mut fresh2 = (*pTriInfos.offset(f as isize)).AssignedGroup[i as usize];
832832
*fresh2 = &mut *pGroups.offset(iNrActiveGroups as isize) as *mut SGroup;
833833
(*(*pTriInfos.offset(f as isize)).AssignedGroup[i as usize])
834-
.iVertexRepresentitive = vert_index;
834+
.iVertexRepresentative = vert_index;
835835
(*(*pTriInfos.offset(f as isize)).AssignedGroup[i as usize]).bOrientPreservering =
836836
(*pTriInfos.offset(f as isize)).iFlag & 8i32 != 0i32;
837837
(*(*pTriInfos.offset(f as isize)).AssignedGroup[i as usize]).iNrFaces = 0i32;
@@ -897,7 +897,7 @@ unsafe fn AssignRecur(
897897
let mut pMyTriInfo: *mut STriInfo =
898898
&mut *psTriInfos.offset(iMyTriIndex as isize) as *mut STriInfo;
899899
// track down vertex
900-
let iVertRep: i32 = (*pGroup).iVertexRepresentitive;
900+
let iVertRep: i32 = (*pGroup).iVertexRepresentative;
901901
let mut pVerts: *const i32 =
902902
&*piTriListIn.offset((3i32 * iMyTriIndex + 0i32) as isize) as *const i32;
903903
let mut i: i32 = -1i32;

crates/bevy_pbr/src/material.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ pub struct MaterialBindGroupId(Option<BindGroupId>);
802802
pub struct AtomicMaterialBindGroupId(AtomicU32);
803803

804804
impl AtomicMaterialBindGroupId {
805-
/// Stores a value atomically. Uses [`Ordering::Relaxed`] so there is zero guarentee of ordering
805+
/// Stores a value atomically. Uses [`Ordering::Relaxed`] so there is zero guarantee of ordering
806806
/// relative to other operations.
807807
///
808808
/// See also: [`AtomicU32::store`].
@@ -815,7 +815,7 @@ impl AtomicMaterialBindGroupId {
815815
self.0.store(id, Ordering::Relaxed);
816816
}
817817

818-
/// Loads a value atomically. Uses [`Ordering::Relaxed`] so there is zero guarentee of ordering
818+
/// Loads a value atomically. Uses [`Ordering::Relaxed`] so there is zero guarantee of ordering
819819
/// relative to other operations.
820820
///
821821
/// See also: [`AtomicU32::load`].

crates/bevy_pbr/src/pbr_material.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ pub struct StandardMaterial {
248248
/// | Flint Glass | 1.69 |
249249
/// | Ruby | 1.71 |
250250
/// | Glycerine | 1.74 |
251-
/// | Saphire | 1.77 |
251+
/// | Sapphire | 1.77 |
252252
/// | Cubic Zirconia | 2.15 |
253253
/// | Diamond | 2.42 |
254254
/// | Moissanite | 2.65 |

crates/bevy_reflect/bevy_reflect_derive/src/utility.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ impl FromIterator<StringExpr> for StringExpr {
407407
}
408408
}
409409

410-
/// Returns a [`syn::parse::Parser`] which parses a stream of zero or more occurences of `T`
410+
/// Returns a [`syn::parse::Parser`] which parses a stream of zero or more occurrences of `T`
411411
/// separated by punctuation of type `P`, with optional trailing punctuation.
412412
///
413413
/// This is functionally the same as [`Punctuated::parse_terminated`],

crates/bevy_reflect/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ bevy_reflect::tests::Test {
19171917
}
19181918

19191919
#[test]
1920-
fn should_allow_custom_where_wtih_assoc_type() {
1920+
fn should_allow_custom_where_with_assoc_type() {
19211921
trait Trait {
19221922
type Assoc;
19231923
}

crates/bevy_reflect/src/path/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl<'a> AccessError<'a> {
6363
&self.kind
6464
}
6565

66-
/// The returns the [`Access`] that this [`AccessError`] occured in.
66+
/// The returns the [`Access`] that this [`AccessError`] occurred in.
6767
pub const fn access(&self) -> &Access {
6868
&self.access
6969
}

crates/bevy_reflect/src/path/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ pub enum ReflectPathError<'a> {
2727
InvalidDowncast,
2828

2929
/// An error caused by an invalid path string that couldn't be parsed.
30-
#[error("Encounted an error at offset {offset} while parsing `{path}`: {error}")]
30+
#[error("Encountered an error at offset {offset} while parsing `{path}`: {error}")]
3131
ParseError {
3232
/// Position in `path`.
3333
offset: usize,
34-
/// The path that the error occured in.
34+
/// The path that the error occurred in.
3535
path: &'a str,
3636
/// The underlying error.
3737
error: ParseError<'a>,

0 commit comments

Comments
 (0)