Apply suggestions from code review

Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
This commit is contained in:
Jarrett Ye 2025-07-30 18:09:42 +08:00 committed by GitHub
parent 4c69989479
commit 76fa585919
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -7,8 +7,8 @@ database-check-card-properties =
}
database-check-card-last-review-time-empty =
{ $count ->
[one] Fixed { $count } card with no last review time.
*[other] Fixed { $count } cards with no last review time.
[one] Filled missing last review time in { $count } card.
*[other] Filled missing last review time in { $count } cards.
}
database-check-missing-templates =
{ $count ->

View file

@ -313,7 +313,7 @@ pub(crate) struct LastRevlogInfo {
pub(crate) last_reviewed_at: Option<TimestampSecs>,
}
/// Return a map of cards to info about last review/reschedule.
/// Return a map of cards to info about last review.
pub(crate) fn get_last_revlog_info(revlogs: &[RevlogEntry]) -> HashMap<CardId, LastRevlogInfo> {
let mut out = HashMap::new();
revlogs