diff --git a/crates/bevy_ecs/src/schedule/schedule.rs b/crates/bevy_ecs/src/schedule/schedule.rs index 0024360158a20..8f7da74f1e78c 100644 --- a/crates/bevy_ecs/src/schedule/schedule.rs +++ b/crates/bevy_ecs/src/schedule/schedule.rs @@ -168,11 +168,11 @@ pub struct Schedule { #[derive(ScheduleLabel, Hash, PartialEq, Eq, Debug, Clone)] struct DefaultSchedule; -/// Creates a schedule with a default label. Only use in situations where -/// where you don't care about the [`ScheduleLabel`]. Inserting a default schedule -/// into the world risks overwriting another schedule. For most situations you should use -/// [`Schedule::new`]. impl Default for Schedule { + /// Creates a schedule with a default label. Only use in situations where + /// you don't care about the [`ScheduleLabel`]. Inserting a default schedule + /// into the world risks overwriting another schedule. For most situations + /// you should use [`Schedule::new`]. fn default() -> Self { Self::new(DefaultSchedule) } diff --git a/crates/bevy_render/src/view/visibility/render_layers.rs b/crates/bevy_render/src/view/visibility/render_layers.rs index 677c0877777ba..0451e35818f15 100644 --- a/crates/bevy_render/src/view/visibility/render_layers.rs +++ b/crates/bevy_render/src/view/visibility/render_layers.rs @@ -38,8 +38,8 @@ impl std::iter::FromIterator for RenderLayers { } } -/// Defaults to containing to layer `0`, the first layer. impl Default for RenderLayers { + /// By default, this structure includes layer `0`, which represents the first layer. fn default() -> Self { RenderLayers::layer(0) }