diff --git a/src/derived/slot.rs b/src/derived/slot.rs index b870eab0..1fb0dea4 100644 --- a/src/derived/slot.rs +++ b/src/derived/slot.rs @@ -72,8 +72,7 @@ where /// Last revision when the memoized value was observed to change. changed_at: Revision, - /// If true, then this value was considered a constant when last - /// verified. + /// Minimum durability of the inputs to this query. durability: Durability, /// The inputs that went into our query, if we are tracking them. diff --git a/src/revision.rs b/src/revision.rs index 175d78e2..ca7bb108 100644 --- a/src/revision.rs +++ b/src/revision.rs @@ -1,14 +1,14 @@ use std::num::NonZeroU64; use std::sync::atomic::{AtomicU64, Ordering}; -/// Value if the initial revision, as a u64. We don't use 0 +/// Value of the initial revision, as a u64. We don't use 0 /// because we want to use a `NonZeroU64`. const START_U64: u64 = 1; /// A unique identifier for the current version of the database; each /// time an input is changed, the revision number is incremented. /// `Revision` is used internally to track which values may need to be -/// recomputed, but not something you should have to interact with +/// recomputed, but is not something you should have to interact with /// directly as a user of salsa. #[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] pub struct Revision { diff --git a/src/runtime.rs b/src/runtime.rs index b7406cee..649865d5 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -571,7 +571,7 @@ struct ActiveQuery { /// What query is executing database_key: DB::DatabaseKey, - /// True if all inputs were constant (and no untracked inputs). + /// Minimum durability of inputs observed so far. durability: Durability, /// Maximum revision of all inputs observed. If we observe an @@ -587,7 +587,7 @@ pub(crate) struct ComputedQueryResult { /// Final value produced pub(crate) value: V, - /// True if all inputs were constant (and no untracked inputs). + /// Minimum durability of inputs observed so far. pub(crate) durability: Durability, /// Maximum revision of all inputs observed. If we observe an