diff options
Diffstat (limited to 'examples/reading-correction-break.ts')
-rw-r--r-- | examples/reading-correction-break.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/reading-correction-break.ts b/examples/reading-correction-break.ts index a72e545..3c45d27 100644 --- a/examples/reading-correction-break.ts +++ b/examples/reading-correction-break.ts @@ -14,7 +14,7 @@ var sentence = await api.sentence("やっぱりこの辺にある武器も朽ち console.log(sentence.furigana()); // insert parser break in the middle of a (wrong) expression -await sentence.break(sentence.at("この辺") + 2); +await sentence.break(sentence.indexOf("この辺") + 2); // generated reading (correct) console.log(sentence.furigana()); |