Skip to content

Commit 917cfa9

Browse files
authored
Merge pull request #663 from rbalicki2/rb/fix-typo
fix grammar issue in comment
2 parents d32b3c1 + 661f6e1 commit 917cfa9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/function/backdate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ where
77
C: Configuration,
88
{
99
/// If the value/durability of this memo is equal to what is found in `revisions`/`value`,
10-
/// then updates `revisions.changed_at` to match `self.revisions.changed_at`. This is invoked
10+
/// then update `revisions.changed_at` to match `self.revisions.changed_at`. This is invoked
1111
/// on an old memo when a new memo has been produced to check whether there have been changed.
1212
pub(super) fn backdate_if_appropriate(
1313
&self,

src/function/execute.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ where
1818
///
1919
/// * `db`, the database.
2020
/// * `active_query`, the active stack frame for the query to execute.
21-
/// * `opt_old_memo`, the older memo, if any existed. Used for backdated.
21+
/// * `opt_old_memo`, the older memo, if any existed. Used for backdating.
2222
pub(super) fn execute<'db>(
2323
&'db self,
2424
db: &'db C::DbView,

src/function/maybe_changed_after.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ where
7878
old_memo = old_memo.tracing_debug()
7979
);
8080

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

151-
/// True if the memo's value and `changed_at` time is up to date in the current
151+
/// True if the memo's value and `changed_at` time is up-to-date in the current
152152
/// revision. When this returns true, it also updates the memo's `verified_at`
153153
/// field if needed to make future calls cheaper.
154154
///

src/function/memo.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ impl<C: Configuration> IngredientImpl<C> {
2626
unsafe { std::mem::transmute(memo) }
2727
}
2828

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

35-
/// Inserts the memo for the given key; (atomically) overwrites any previously existing memo.-
35+
/// Inserts the memo for the given key; (atomically) overwrites any previously existing memo.
3636
pub(super) fn insert_memo_into_table_for<'db>(
3737
&'db self,
3838
zalsa: &'db Zalsa,

src/zalsa_local.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl ZalsaLocal {
306306
impl std::panic::RefUnwindSafe for ZalsaLocal {}
307307

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

0 commit comments

Comments
 (0)