Fix wording on DetectChanges::is_changed (#8550)

# Objective

- Closes #8472 

## Solution

- Fix wording on DetectChanges::is_changed
This commit is contained in:
Nicola Papale 2023-05-05 22:33:02 +02:00 committed by GitHub
parent a616fa8f70
commit d319910d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,12 @@ pub trait DetectChanges {
/// Returns `true` if this value was added after the system last ran.
fn is_added(&self) -> bool;
/// Returns `true` if this value was added or mutably dereferenced after the system last ran.
/// Returns `true` if this value was added or mutably dereferenced
/// either since the last time the system ran or, if the system never ran,
/// since the beginning of the program.
///
/// To check if the value was mutably dereferenced only,
/// use `this.is_changed() && !this.is_added()`.
fn is_changed(&self) -> bool;
/// Returns the change tick recording the time this data was most recently changed.