Skip to content

Commit a85fb21

Browse files
committed
Fix documentation links
1 parent bf11038 commit a85fb21

File tree

55 files changed

+124
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+124
-96
lines changed

crates/bevy_app/src/app.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ impl App {
318318
}
319319

320320
/// Initializes `T` event handling by inserting an event queue resource ([`Events::<T>`])
321-
/// and scheduling an [`event_update_system`] in [`First`](crate::First).
321+
/// and scheduling an [`event_update_system`] in [`First`].
322322
///
323323
/// See [`Events`] for information on how to define events.
324324
///

crates/bevy_app/src/main_schedule.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use bevy_ecs::{
1717
/// Then it will run:
1818
/// * [`First`]
1919
/// * [`PreUpdate`]
20-
/// * [`StateTransition`](bevy_state::transition::StateTransition)
20+
/// * [`StateTransition`]
2121
/// * [`RunFixedMainLoop`]
2222
/// * This will run [`FixedMain`] zero to many times, based on how much time has elapsed.
2323
/// * [`Update`]
@@ -32,6 +32,7 @@ use bevy_ecs::{
3232
///
3333
/// See [`RenderPlugin`] and [`PipelinedRenderingPlugin`] for more details.
3434
///
35+
/// [`StateTransition`]: https://docs.rs/bevy/latest/bevy/prelude/struct.StateTransition.html
3536
/// [`RenderPlugin`]: https://docs.rs/bevy/latest/bevy/render/struct.RenderPlugin.html
3637
/// [`PipelinedRenderingPlugin`]: https://docs.rs/bevy/latest/bevy/render/pipelined_rendering/struct.PipelinedRenderingPlugin.html
3738
/// [`SubApp`]: crate::SubApp

crates/bevy_asset/src/loader.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ impl<A: Asset> AssetContainer for A {
288288
}
289289
}
290290

291-
/// An error that occurs when attempting to call [`LoadContext::load_direct`]
291+
/// An error that occurs when attempting to call [`DirectNestedLoader::load`](crate::DirectNestedLoader::load)
292292
#[derive(Error, Debug)]
293293
#[error("Failed to load dependency {dependency:?} {error}")]
294294
pub struct LoadDirectError {

crates/bevy_asset/src/loader_builders.rs

+12-9
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl<'a, 'b> ReaderRef<'a, 'b> {
2828
/// A builder for loading nested assets inside a `LoadContext`.
2929
///
3030
/// # Lifetimes
31-
/// - `ctx`: the lifetime of the associated [`AssetServer`] reference
31+
/// - `ctx`: the lifetime of the associated [`AssetServer`](crate::AssetServer) reference
3232
/// - `builder`: the lifetime of the temporary builder structs
3333
pub struct NestedLoader<'ctx, 'builder> {
3434
load_context: &'builder mut LoadContext<'ctx>,
@@ -107,11 +107,14 @@ impl<'ctx, 'builder> NestedLoader<'ctx, 'builder> {
107107
}
108108

109109
/// Retrieves a handle for the asset at the given path and adds that path as a dependency of the asset.
110-
/// If the current context is a normal [`AssetServer::load`], an actual asset load will be kicked off immediately, which ensures the load happens
111-
/// as soon as possible.
112-
/// "Normal loads" kicked from within a normal Bevy App will generally configure the context to kick off loads immediately.
113-
/// If the current context is configured to not load dependencies automatically (ex: [`AssetProcessor`](crate::processor::AssetProcessor)),
114-
/// a load will not be kicked off automatically. It is then the calling context's responsibility to begin a load if necessary.
110+
/// If the current context is a normal [`AssetServer::load`](crate::AssetServer::load), an actual asset
111+
/// load will be kicked off immediately, which ensures the load happens as soon as possible.
112+
/// "Normal loads" kicked from within a normal Bevy App will generally configure the context to kick off
113+
/// loads immediately.
114+
/// If the current context is configured to not load dependencies automatically
115+
/// (ex: [`AssetProcessor`](crate::processor::AssetProcessor)),
116+
/// a load will not be kicked off automatically. It is then the calling context's responsibility to begin
117+
/// a load if necessary.
115118
pub fn load<'c, A: Asset>(self, path: impl Into<AssetPath<'c>>) -> Handle<A> {
116119
let path = path.into().to_owned();
117120
let handle = if self.load_context.should_load_dependencies {
@@ -131,7 +134,7 @@ impl<'ctx, 'builder> NestedLoader<'ctx, 'builder> {
131134
/// A builder for loading untyped nested assets inside a [`LoadContext`].
132135
///
133136
/// # Lifetimes
134-
/// - `ctx`: the lifetime of the associated [`AssetServer`] reference
137+
/// - `ctx`: the lifetime of the associated [`AssetServer`](crate::AssetServer) reference
135138
/// - `builder`: the lifetime of the temporary builder structs
136139
pub struct UntypedNestedLoader<'ctx, 'builder> {
137140
base: NestedLoader<'ctx, 'builder>,
@@ -163,7 +166,7 @@ impl<'ctx, 'builder> UntypedNestedLoader<'ctx, 'builder> {
163166
/// A builder for directly loading nested assets inside a `LoadContext`.
164167
///
165168
/// # Lifetimes
166-
/// - `ctx`: the lifetime of the associated [`AssetServer`] reference
169+
/// - `ctx`: the lifetime of the associated [`AssetServer`][crate::AssetServer] reference
167170
/// - `builder`: the lifetime of the temporary builder structs
168171
/// - `reader`: the lifetime of the [`Reader`] reference used to read the asset data
169172
pub struct DirectNestedLoader<'ctx, 'builder, 'reader> {
@@ -277,7 +280,7 @@ impl<'ctx: 'reader, 'builder, 'reader> DirectNestedLoader<'ctx, 'builder, 'reade
277280
/// A builder for directly loading untyped nested assets inside a `LoadContext`.
278281
///
279282
/// # Lifetimes
280-
/// - `ctx`: the lifetime of the associated [`AssetServer`] reference
283+
/// - `ctx`: the lifetime of the associated [`AssetServer`](crate::AssetServer) reference
281284
/// - `builder`: the lifetime of the temporary builder structs
282285
/// - `reader`: the lifetime of the [`Reader`] reference used to read the asset data
283286
pub struct UntypedDirectNestedLoader<'ctx, 'builder, 'reader> {

crates/bevy_asset/src/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl<'a> Display for AssetPath<'a> {
7474
}
7575
}
7676

77-
/// An error that occurs when parsing a string type to create an [`AssetPath`] fails, such as during [`AssetPath::parse`] or [`AssetPath::from<'static str>`].
77+
/// An error that occurs when parsing a string type to create an [`AssetPath`] fails, such as during [`AssetPath::parse`].
7878
#[derive(Error, Debug, PartialEq, Eq)]
7979
pub enum ParseAssetPathError {
8080
/// Error that occurs when the [`AssetPath::source`] section of a path string contains the [`AssetPath::label`] delimiter `#`. E.g. `bad#source://file.test`.

crates/bevy_color/src/color.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use bevy_reflect::prelude::*;
1717
/// # Operations
1818
///
1919
/// [`Color`] supports all the standard color operations, such as [mixing](Mix),
20-
/// [luminance](Luminance) and [hue](Hue) adjustment, [clamping](ClampColor),
20+
/// [luminance](Luminance) and [hue](Hue) adjustment, clamping,
2121
/// and [diffing](EuclideanDistance). These operations delegate to the concrete color space contained
2222
/// by [`Color`], but will convert to [`Oklch`](Oklcha) for operations which aren't supported in the
2323
/// current space. After performing the operation, if a conversion was required, the result will be

crates/bevy_core_pipeline/src/core_3d/main_opaque_pass_3d_node.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ use bevy_utils::tracing::info_span;
1717

1818
use super::AlphaMask3d;
1919

20-
/// A [`bevy_render::render_graph::Node`] that runs the [`Opaque3d`]
21-
/// [`BinnedRenderPhase`] and [`AlphaMask3d`]
22-
/// [`bevy_render::render_phase::SortedRenderPhase`]s.
20+
/// A [`bevy_render::render_graph::Node`] that runs the [`Opaque3d`] and [`AlphaMask3d`]
21+
/// [`ViewBinnedRenderPhases`]s.
2322
#[derive(Default)]
2423
pub struct MainOpaquePass3dNode;
2524
impl ViewNode for MainOpaquePass3dNode {

crates/bevy_core_pipeline/src/core_3d/main_transmissive_pass_3d_node.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use bevy_utils::tracing::info_span;
1414
use std::ops::Range;
1515

1616
/// A [`bevy_render::render_graph::Node`] that runs the [`Transmissive3d`]
17-
/// [`SortedRenderPhase`].
17+
/// [`ViewSortedRenderPhases`].
1818
#[derive(Default)]
1919
pub struct MainTransmissivePass3dNode;
2020

crates/bevy_core_pipeline/src/core_3d/main_transparent_pass_3d_node.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use bevy_render::{
1313
use bevy_utils::tracing::info_span;
1414

1515
/// A [`bevy_render::render_graph::Node`] that runs the [`Transparent3d`]
16-
/// [`SortedRenderPhase`].
16+
/// [`ViewSortedRenderPhases`].
1717
#[derive(Default)]
1818
pub struct MainTransparentPass3dNode;
1919

crates/bevy_core_pipeline/src/smaa/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! pinch, you can simply use the default settings (via the [`Default`] trait)
1616
//! for a high-quality, high-performance appearance. When using SMAA, you will
1717
//! likely want to turn the default MSAA off by inserting the
18-
//! [`bevy_render::Msaa::Off`] resource into the [`App`].
18+
//! [`bevy_render::view::Msaa::Off`] resource into the [`App`].
1919
//!
2020
//! Those who have used SMAA in other engines should be aware that Bevy doesn't
2121
//! yet support the following more advanced features of SMAA:

crates/bevy_ecs/macros/src/world_query.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub(crate) fn item_struct(
2020
user_where_clauses_with_world: Option<&WhereClause>,
2121
) -> proc_macro2::TokenStream {
2222
let item_attrs = quote!(
23-
#[doc = "Automatically generated [`WorldQuery`] item type for [`"]
23+
#[doc = "Automatically generated [`WorldQuery`][#path::query::WorldQuery] item type for [`"]
2424
#[doc = stringify!(#struct_name)]
2525
#[doc = "`], returned when iterating over query results."]
2626
#[automatically_derived]

crates/bevy_ecs/src/entity/map_entities.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,8 @@ impl<'m> SceneEntityMapper<'m> {
192192
}
193193

194194
/// Reserves the allocated references to dead entities within the world. This frees the temporary base
195-
/// [`Entity`] while reserving extra generations via [`crate::entity::Entities::reserve_generations`]. Because this
196-
/// renders the [`SceneEntityMapper`] unable to safely allocate any more references, this method takes ownership of
197-
/// `self` in order to render it unusable.
195+
/// [`Entity`] while reserving extra generations. Because this makes the [`SceneEntityMapper`] unable to
196+
/// safely allocate any more references, this method takes ownership of `self` in order to render it unusable.
198197
pub fn finish(self, world: &mut World) {
199198
// SAFETY: Entities data is kept in a valid state via `EntityMap::world_scope`
200199
let entities = unsafe { world.entities_mut() };

crates/bevy_ecs/src/event/base.rs

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ use std::{
2626
/// [`World`]: crate::world::World
2727
/// [`ComponentId`]: crate::component::ComponentId
2828
/// [`Observer`]: crate::observer::Observer
29+
/// [`Events<E>`]: super::Events
30+
/// [`EventReader`]: super::EventReader
31+
/// [`EventWriter`]: super::EventWriter
2932
#[diagnostic::on_unimplemented(
3033
message = "`{Self}` is not an `Event`",
3134
label = "invalid `Event`",

crates/bevy_ecs/src/event/collections.rs

+9-3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ use std::ops::{Deref, DerefMut};
8181
/// [Example usage.](https://github.com/bevyengine/bevy/blob/latest/examples/ecs/event.rs)
8282
/// [Example usage standalone.](https://github.com/bevyengine/bevy/blob/latest/crates/bevy_ecs/examples/events.rs)
8383
///
84+
/// [`EventReader`]: super::EventReader
85+
/// [`EventWriter`]: super::EventWriter
86+
/// [`event_update_system`]: super::event_update_system
87+
///
8488
#[derive(Debug, Resource)]
8589
#[cfg_attr(feature = "bevy_reflect", derive(Reflect))]
8690
pub struct Events<E: Event> {
@@ -111,8 +115,8 @@ impl<E: Event> Events<E> {
111115
.min(self.events_b.start_event_count)
112116
}
113117

114-
/// "Sends" an `event` by writing it to the current event buffer. [`EventReader`]s can then read
115-
/// the event.
118+
/// "Sends" an `event` by writing it to the current event buffer.
119+
/// [`EventReader`](super::EventReader)s can then read the event.
116120
/// This method returns the [ID](`EventId`) of the sent `event`.
117121
pub fn send(&mut self, event: E) -> EventId<E> {
118122
let event_id = EventId {
@@ -129,7 +133,7 @@ impl<E: Event> Events<E> {
129133
event_id
130134
}
131135

132-
/// Sends a list of `events` all at once, which can later be read by [`EventReader`]s.
136+
/// Sends a list of `events` all at once, which can later be read by [`EventReader`](super::EventReader)s.
133137
/// This is more efficient than sending each event individually.
134138
/// This method returns the [IDs](`EventId`) of the sent `events`.
135139
pub fn send_batch(&mut self, events: impl IntoIterator<Item = E>) -> SendBatchIds<E> {
@@ -241,6 +245,8 @@ impl<E: Event> Events<E> {
241245
/// between the last `update()` call and your call to `iter_current_update_events`.
242246
/// If events happen outside that window, they will not be handled. For example, any events that
243247
/// happen after this call and before the next `update()` call will be dropped.
248+
///
249+
/// [`EventReader`]: super::EventReader
244250
pub fn iter_current_update_events(&self) -> impl ExactSizeIterator<Item = &E> {
245251
self.events_b.iter().map(|i| &i.event)
246252
}

crates/bevy_ecs/src/event/iterators.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use bevy_ecs::{
66
use bevy_utils::detailed_trace;
77
use std::{iter::Chain, slice::Iter};
88

9-
/// An iterator that yields any unread events from an [`EventReader`] or [`ManualEventReader`].
9+
/// An iterator that yields any unread events from an [`EventReader`](super::EventReader) or [`ManualEventReader`].
1010
#[derive(Debug)]
1111
pub struct EventIterator<'a, E: Event> {
1212
iter: EventIteratorWithId<'a, E>,
@@ -44,7 +44,7 @@ impl<'a, E: Event> ExactSizeIterator for EventIterator<'a, E> {
4444
}
4545
}
4646

47-
/// An iterator that yields any unread events (and their IDs) from an [`EventReader`] or [`ManualEventReader`].
47+
/// An iterator that yields any unread events (and their IDs) from an [`EventReader`](super::EventReader) or [`ManualEventReader`].
4848
#[derive(Debug)]
4949
pub struct EventIteratorWithId<'a, E: Event> {
5050
reader: &'a mut ManualEventReader<E>,

crates/bevy_ecs/src/event/reader.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ use std::marker::PhantomData;
1111
///
1212
/// Unlike [`EventWriter<T>`], systems with `EventReader<T>` param can be executed concurrently
1313
/// (but not concurrently with `EventWriter<T>` systems for the same event type).
14+
///
15+
/// [`EventWriter<T>`]: super::EventWriter
1416
#[derive(SystemParam, Debug)]
1517
pub struct EventReader<'w, 's, E: Event> {
1618
pub(super) reader: Local<'s, ManualEventReader<E>>,
@@ -25,7 +27,7 @@ impl<'w, 's, E: Event> EventReader<'w, 's, E> {
2527
self.reader.read(&self.events)
2628
}
2729

28-
/// Like [`read`](Self::read), except also returning the [`EventId`] of the events.
30+
/// Like [`read`](Self::read), except also returning the [`EventId`](super::EventId) of the events.
2931
pub fn read_with_id(&mut self) -> EventIteratorWithId<'_, E> {
3032
self.reader.read_with_id(&self.events)
3133
}

crates/bevy_ecs/src/event/update.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn signal_event_update_system(signal: Option<ResMut<EventRegistry>>) {
2626
}
2727
}
2828

29-
/// A system that calls [`Events::update`] on all registered [`Events`] in the world.
29+
/// A system that calls [`Events::update`](super::Events::update) on all registered [`Events`][super::Events] in the world.
3030
pub fn event_update_system(world: &mut World, mut last_change_tick: Local<Tick>) {
3131
if world.contains_resource::<EventRegistry>() {
3232
world.resource_scope(|world, mut registry: Mut<EventRegistry>| {

crates/bevy_ecs/src/event/writer.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ pub struct EventWriter<'w, E: Event> {
6565
}
6666

6767
impl<'w, E: Event> EventWriter<'w, E> {
68-
/// Sends an `event`, which can later be read by [`EventReader`]s.
68+
/// Sends an `event`, which can later be read by [`EventReader`](super::EventReader)s.
6969
/// This method returns the [ID](`EventId`) of the sent `event`.
7070
///
7171
/// See [`Events`] for details.
7272
pub fn send(&mut self, event: E) -> EventId<E> {
7373
self.events.send(event)
7474
}
7575

76-
/// Sends a list of `events` all at once, which can later be read by [`EventReader`]s.
76+
/// Sends a list of `events` all at once, which can later be read by [`EventReader`](super::EventReader)s.
7777
/// This is more efficient than sending each event individually.
7878
/// This method returns the [IDs](`EventId`) of the sent `events`.
7979
///

crates/bevy_ecs/src/observer/runner.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl Component for ObserverState {
8484
}
8585

8686
/// Type for function that is run when an observer is triggered.
87-
/// Typically refers to the default runner that runs the system stored in the associated [`ObserverSystemComponent`],
87+
/// Typically refers to the default runner that runs the system stored in the associated [`Observer`] component,
8888
/// but can be overridden for custom behaviour.
8989
pub type ObserverRunner = fn(DeferredWorld, ObserverTrigger, PtrMut);
9090

@@ -390,7 +390,7 @@ fn observer_system_runner<E: Event, B: Bundle>(
390390
// This transmute is obviously not ideal, but it is safe. Ideally we can remove the
391391
// static constraint from ObserverSystem, but so far we have not found a way.
392392
let trigger: Trigger<'static, E, B> = unsafe { std::mem::transmute(trigger) };
393-
// SAFETY: Observer was triggered so must have an `ObserverSystemComponent`
393+
// SAFETY: Observer was triggered so must have an `Observer` component.
394394
let system = unsafe {
395395
&mut observer_cell
396396
.get_mut::<Observer<E, B>>()

crates/bevy_ecs/src/system/commands/mod.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -751,12 +751,16 @@ impl<'w, 's> Commands<'w, 's> {
751751

752752
/// Sends a "global" [`Trigger`] without any targets. This will run any [`Observer`] of the `event` that
753753
/// isn't scoped to specific targets.
754+
///
755+
/// [`Trigger`]: crate::observer::Trigger
754756
pub fn trigger(&mut self, event: impl Event) {
755757
self.add(TriggerEvent { event, targets: () });
756758
}
757759

758760
/// Sends a [`Trigger`] for the given targets. This will run any [`Observer`] of the `event` that
759761
/// watches those targets.
762+
///
763+
/// [`Trigger`]: crate::observer::Trigger
760764
pub fn trigger_targets(&mut self, event: impl Event, targets: impl TriggerTargets) {
761765
self.add(TriggerEvent { event, targets });
762766
}
@@ -1159,7 +1163,7 @@ impl EntityCommands<'_> {
11591163
self.commands.reborrow()
11601164
}
11611165

1162-
/// Creates an [`Observer`](crate::observer::Observer) listening for a trigger of type `T` that targets this entity.
1166+
/// Creates an [`Observer`] listening for a trigger of type `T` that targets this entity.
11631167
pub fn observe<E: Event, B: Bundle, M>(
11641168
&mut self,
11651169
system: impl IntoObserverSystem<E, B, M>,

crates/bevy_ecs/src/system/observer_system.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ use crate::{
88
use super::IntoSystem;
99

1010
/// Implemented for systems that have an [`Observer`] as the first argument.
11+
///
12+
/// [`Observer`]: crate::observer::Observer
1113
pub trait ObserverSystem<E: 'static, B: Bundle>:
1214
System<In = Trigger<'static, E, B>, Out = ()> + Send + 'static
1315
{

crates/bevy_ecs/src/world/deferred_world.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,12 @@ impl<'w> DeferredWorld<'w> {
368368
Observers::invoke(self.reborrow(), event, entity, components, data);
369369
}
370370

371-
/// Sends a "global" [`Trigger`] without any targets.
371+
/// Sends a "global" [`Trigger`](crate::observer::Trigger) without any targets.
372372
pub fn trigger<T: Event>(&mut self, trigger: impl Event) {
373373
self.commands().trigger(trigger);
374374
}
375375

376-
/// Sends a [`Trigger`] with the given `targets`.
376+
/// Sends a [`Trigger`](crate::observer::Trigger) with the given `targets`.
377377
pub fn trigger_targets(&mut self, trigger: impl Event, targets: impl TriggerTargets) {
378378
self.commands().trigger_targets(trigger, targets);
379379
}

crates/bevy_ecs/src/world/entity_ref.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ impl<'w> EntityWorldMut<'w> {
14101410
}
14111411
}
14121412

1413-
/// Creates an [`Observer`](crate::observer::Observer) listening for events of type `E` targeting this entity.
1413+
/// Creates an [`Observer`] listening for events of type `E` targeting this entity.
14141414
/// In order to trigger the callback the entity must also match the query when the event is fired.
14151415
pub fn observe<E: Event, B: Bundle, M>(
14161416
&mut self,

crates/bevy_ecs/src/world/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,8 @@ impl World {
812812
unsafe { self.get_entities_dynamic_mut_unchecked(entities.iter().copied()) }
813813
}
814814

815-
/// Gets mutable access to multiple entities, contained in a [`HashSet`].
816-
/// The uniqueness of items in a [`HashSet`] allows us to avoid checking for duplicates.
815+
/// Gets mutable access to multiple entities, contained in a [`EntityHashSet`].
816+
/// The uniqueness of items in a [`EntityHashSet`] allows us to avoid checking for duplicates.
817817
///
818818
/// # Errors
819819
///
@@ -2037,7 +2037,7 @@ impl World {
20372037
}
20382038
}
20392039

2040-
/// Calls both [`World::flush_entities`] and [`World::flush_commands`].
2040+
/// Flushes queued entities and calls [`World::flush_commands`].
20412041
#[inline]
20422042
pub fn flush(&mut self) {
20432043
self.flush_entities();

crates/bevy_gizmos/src/circles.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ where
306306
}
307307
}
308308

309-
/// Builder for configuring the drawing options of [`Sphere`].
309+
/// A builder returned by [`Gizmos::sphere`].
310310
pub struct SphereBuilder<'a, 'w, 's, Config, Clear>
311311
where
312312
Config: GizmoConfigGroup,

crates/bevy_internal/src/default_plugins.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use bevy_app::{Plugin, PluginGroup, PluginGroupBuilder};
2929
/// * [`GilrsPlugin`](crate::gilrs::GilrsPlugin) - with feature `bevy_gilrs`
3030
/// * [`AnimationPlugin`](crate::animation::AnimationPlugin) - with feature `bevy_animation`
3131
/// * [`GizmoPlugin`](crate::gizmos::GizmoPlugin) - with feature `bevy_gizmos`
32-
/// * [`StatesPlugin`](crate::app::StatesPlugin) - with feature `bevy_state`
32+
/// * [`StatesPlugin`](crate::state::app::StatesPlugin) - with feature `bevy_state`
3333
/// * [`DevToolsPlugin`](crate::dev_tools::DevToolsPlugin) - with feature `bevy_dev_tools`
3434
/// * [`CiTestingPlugin`](crate::dev_tools::ci_testing::CiTestingPlugin) - with feature `bevy_ci_testing`
3535
///

0 commit comments

Comments
 (0)