diff --git a/crates/bevy_ecs/src/system/system_param.rs b/crates/bevy_ecs/src/system/system_param.rs index 78c24878fb756..8c56b64adee69 100644 --- a/crates/bevy_ecs/src/system/system_param.rs +++ b/crates/bevy_ecs/src/system/system_param.rs @@ -259,7 +259,7 @@ impl<'w, T: Component> AsRef for Res<'w, T> { } } -/// The [`SystemParamState`] of [`Res`]. +/// The [`SystemParamState`] of [`Res`]. pub struct ResState { component_id: ComponentId, marker: PhantomData, @@ -328,7 +328,7 @@ impl<'w, 's, T: Component> SystemParamFetch<'w, 's> for ResState { } } -/// The [`SystemParamState`] of `Option>`. +/// The [`SystemParamState`] of [`Option>`]. pub struct OptionResState(ResState); impl<'a, T: Component> SystemParam for Option> { @@ -369,7 +369,7 @@ impl<'w, 's, T: Component> SystemParamFetch<'w, 's> for OptionResState { } } -/// The [`SystemParamState`] of [`ResMut`]. +/// The [`SystemParamState`] of [`ResMut`]. pub struct ResMutState { component_id: ComponentId, marker: PhantomData, @@ -576,7 +576,7 @@ impl<'a, T: Component> DerefMut for Local<'a, T> { } } -/// The [`SystemParamState`] of [`Local`]. +/// The [`SystemParamState`] of [`Local`]. pub struct LocalState(T); impl<'a, T: Component + FromWorld> SystemParam for Local<'a, T> { @@ -644,7 +644,7 @@ impl<'a, T> RemovedComponents<'a, T> { // SAFE: Only reads World components unsafe impl ReadOnlySystemParamFetch for RemovedComponentsState {} -/// The [`SystemParamState`] of [`RemovedComponents`]. +/// The [`SystemParamState`] of [`RemovedComponents`]. pub struct RemovedComponentsState { component_id: ComponentId, marker: PhantomData, @@ -741,7 +741,7 @@ impl<'w, T: 'static> Deref for NonSend<'w, T> { } } -/// The [`SystemParamState`] of [`NonSend`]. +/// The [`SystemParamState`] of [`NonSend`]. pub struct NonSendState { component_id: ComponentId, marker: PhantomData T>, @@ -856,7 +856,7 @@ impl<'w, 's, T: 'static> SystemParamFetch<'w, 's> for OptionNonSendState { } } -/// The [`SystemParamState`] of [`NonSendMut`]. +/// The [`SystemParamState`] of [`NonSendMut`]. pub struct NonSendMutState { component_id: ComponentId, marker: PhantomData T>,