Fix fallible param notes (#16218)

I noticed one of the reflinks doesn't work correctly
This commit is contained in:
MiniaczQ 2024-11-03 17:14:26 +01:00 committed by GitHub
parent 52b8b55c2d
commit 5edc23db41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1651,6 +1651,8 @@ impl<'w, 'q, Q: QueryData, F: QueryFilter> From<&'q mut Query<'w, '_, Q, F>>
/// Use [`Option<Single<D, F>>`] instead if zero or one matching entities can exist. /// Use [`Option<Single<D, F>>`] instead if zero or one matching entities can exist.
/// ///
/// See [`Query`] for more details. /// See [`Query`] for more details.
///
/// [System parameter]: crate::system::SystemParam
pub struct Single<'w, D: QueryData, F: QueryFilter = ()> { pub struct Single<'w, D: QueryData, F: QueryFilter = ()> {
pub(crate) item: D::Item<'w>, pub(crate) item: D::Item<'w>,
pub(crate) _filter: PhantomData<F>, pub(crate) _filter: PhantomData<F>,
@ -1687,6 +1689,8 @@ impl<'w, D: QueryData, F: QueryFilter> Single<'w, D, F> {
/// which must individually check each query result for a match. /// which must individually check each query result for a match.
/// ///
/// See [`Query`] for more details. /// See [`Query`] for more details.
///
/// [System parameter]: crate::system::SystemParam
pub struct Populated<'w, 's, D: QueryData, F: QueryFilter = ()>(pub(crate) Query<'w, 's, D, F>); pub struct Populated<'w, 's, D: QueryData, F: QueryFilter = ()>(pub(crate) Query<'w, 's, D, F>);
impl<'w, 's, D: QueryData, F: QueryFilter> Deref for Populated<'w, 's, D, F> { impl<'w, 's, D: QueryData, F: QueryFilter> Deref for Populated<'w, 's, D, F> {