Fix incorrect documentation link in DetectChangesMut (#9431)

# Objective

- Fix a trivial incorrect documentation link in  `DetectChangesMut`.
This commit is contained in:
hesiod 2023-08-15 23:48:12 +02:00 committed by GitHub
parent d60b715411
commit 6ccb26885f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ pub trait DetectChanges {
/// Using types that implement [`DetectChangesMut`], such as [`ResMut`], provide /// Using types that implement [`DetectChangesMut`], such as [`ResMut`], provide
/// a way to query if a value has been mutated in another system. /// a way to query if a value has been mutated in another system.
/// Normally change detection is triggered by either [`DerefMut`] or [`AsMut`], however /// Normally change detection is triggered by either [`DerefMut`] or [`AsMut`], however
/// it can be manually triggered via [`set_if_neq`](`DetectChangesMut::set_changed`). /// it can be manually triggered via [`set_changed`](DetectChangesMut::set_changed).
/// ///
/// To ensure that changes are only triggered when the value actually differs, /// To ensure that changes are only triggered when the value actually differs,
/// check if the value would change before assignment, such as by checking that `new != old`. /// check if the value would change before assignment, such as by checking that `new != old`.