Skip to content

Commit

Permalink
Merge pull request #663 from rbalicki2/rb/fix-typo
Browse files Browse the repository at this point in the history
fix grammar issue in comment
  • Loading branch information
Veykril authored Jan 27, 2025
2 parents d32b3c1 + 661f6e1 commit 917cfa9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/function/backdate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ where
C: Configuration,
{
/// If the value/durability of this memo is equal to what is found in `revisions`/`value`,
/// then updates `revisions.changed_at` to match `self.revisions.changed_at`. This is invoked
/// then update `revisions.changed_at` to match `self.revisions.changed_at`. This is invoked
/// on an old memo when a new memo has been produced to check whether there have been changed.
pub(super) fn backdate_if_appropriate(
&self,
Expand Down
2 changes: 1 addition & 1 deletion src/function/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ where
///
/// * `db`, the database.
/// * `active_query`, the active stack frame for the query to execute.
/// * `opt_old_memo`, the older memo, if any existed. Used for backdated.
/// * `opt_old_memo`, the older memo, if any existed. Used for backdating.
pub(super) fn execute<'db>(
&'db self,
db: &'db C::DbView,
Expand Down
4 changes: 2 additions & 2 deletions src/function/maybe_changed_after.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ where
old_memo = old_memo.tracing_debug()
);

// Check if the inputs are still valid and we can just compare `changed_at`.
// Check if the inputs are still valid. We can just compare `changed_at`.
if self.deep_verify_memo(db, &old_memo, &active_query) {
return Some(if old_memo.revisions.changed_at > revision {
MaybeChangedAfter::Yes
Expand Down Expand Up @@ -148,7 +148,7 @@ where
false
}

/// True if the memo's value and `changed_at` time is up to date in the current
/// True if the memo's value and `changed_at` time is up-to-date in the current
/// revision. When this returns true, it also updates the memo's `verified_at`
/// field if needed to make future calls cheaper.
///
Expand Down
4 changes: 2 additions & 2 deletions src/function/memo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ impl<C: Configuration> IngredientImpl<C> {
unsafe { std::mem::transmute(memo) }
}

/// Convert from an internal memo (which uses statis) to one tied to self
/// Convert from an internal memo (which uses `'static``) to one tied to self
/// so it can be publicly released.
unsafe fn to_self<'db>(&'db self, memo: ArcMemo<'static, C>) -> ArcMemo<'db, C> {
unsafe { std::mem::transmute(memo) }
}

/// Inserts the memo for the given key; (atomically) overwrites any previously existing memo.-
/// Inserts the memo for the given key; (atomically) overwrites any previously existing memo.
pub(super) fn insert_memo_into_table_for<'db>(
&'db self,
zalsa: &'db Zalsa,
Expand Down
2 changes: 1 addition & 1 deletion src/zalsa_local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ impl ZalsaLocal {
impl std::panic::RefUnwindSafe for ZalsaLocal {}

/// Summarizes "all the inputs that a query used"
/// and "all the outputs its wrote to"
/// and "all the outputs it has written to"
#[derive(Debug)]
// #[derive(Clone)] cloning this is expensive, so we don't derive
pub(crate) struct QueryRevisions {
Expand Down

0 comments on commit 917cfa9

Please sign in to comment.