Update stale comment (#4235)

This commit is contained in:
user1823 2025-08-04 11:01:22 +05:30 committed by GitHub
parent d13c117e80
commit f7974568c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -126,8 +126,9 @@ impl Card {
}
}
/// This uses card.due and card.ivl to infer the elapsed time. If 'set due
/// date' or an add-on has changed the due date, this won't be accurate.
/// If last_review_date isn't stored in the card, this uses card.due and
/// card.ivl to infer the elapsed time, which won't be accurate if
/// 'set due date' or an add-on has changed the due date.
pub(crate) fn seconds_since_last_review(&self, timing: &SchedTimingToday) -> Option<u32> {
if let Some(last_review_time) = self.last_review_time {
Some(timing.now.elapsed_secs_since(last_review_time) as u32)