Skip to content

Commit da68bfe

Browse files
authored
Fix Single doc links (#16493)
# Objective In the [*Similar parameters* section of `Query`](https://dev-docs.bevyengine.org/bevy/ecs/prelude/struct.Query.html#similar-parameters), the doc link for `Single` actually links to `Query::single`, and `Option<Single>` just links to `Option`. They should both link to `Single`! The first link is broken because there is a reference-style link defined for `single`, but not for `Single`, and rustdoc treats the link as case-insensitive for some reason. ## Solution Fix the links! ## Testing I built the docs locally with `cargo doc` and tested the links.
1 parent 8e28498 commit da68bfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/bevy_ecs/src/system/query.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ use core::{
352352
/// [`par_iter`]: Self::par_iter
353353
/// [`par_iter_mut`]: Self::par_iter_mut
354354
/// [performance]: #performance
355+
/// [`Single`]: Single
356+
/// [`Option<Single>`]: Single
355357
/// [`single`]: Self::single
356358
/// [`single_mut`]: Self::single_mut
357359
/// [`SparseSet`]: crate::storage::SparseSet

0 commit comments

Comments
 (0)