mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-02-02 09:46:06 +00:00
correct out of date comments and typos
This commit is contained in:
parent
e190a291f5
commit
5221e95ac4
3 changed files with 5 additions and 6 deletions
|
@ -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.
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -571,7 +571,7 @@ struct ActiveQuery<DB: Database> {
|
|||
/// 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<DB: Database, V> {
|
|||
/// 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
|
||||
|
|
Loading…
Reference in a new issue