From e70317717352a4bfea3dd359d18cc7d3f0892af7 Mon Sep 17 00:00:00 2001 From: ishiko Date: Sun, 24 Nov 2024 22:19:54 +0800 Subject: [PATCH] fix instace-> instance --- src/fsrs/fsrs.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fsrs/fsrs.ts b/src/fsrs/fsrs.ts index de6877b..6edc07a 100644 --- a/src/fsrs/fsrs.ts +++ b/src/fsrs/fsrs.ts @@ -160,8 +160,8 @@ export class FSRS extends FSRSAlgorithm { now: DateInput, afterHandler?: (recordLog: IPreview) => R ): R { - const instace = this.getScheduler(card, now) - const recordLog = instace.preview() + const instance = this.getScheduler(card, now) + const recordLog = instance.preview() if (afterHandler && typeof afterHandler === 'function') { return afterHandler(recordLog) } else { @@ -229,12 +229,12 @@ export class FSRS extends FSRSAlgorithm { grade: Grade, afterHandler?: (recordLog: RecordLogItem) => R ): R { - const instace = this.getScheduler(card, now) + const instance = this.getScheduler(card, now) const g = TypeConvert.rating(grade) if (g === Rating.Manual) { throw new Error('Cannot review a manual rating') } - const recordLogItem = instace.review(g) + const recordLogItem = instance.review(g) if (afterHandler && typeof afterHandler === 'function') { return afterHandler(recordLogItem) } else {