Skip to content

Commit

Permalink
Merge pull request #1352 from cesargdm/patch-1
Browse files Browse the repository at this point in the history
Update getting_started.md
  • Loading branch information
liborm85 authored Mar 9, 2022
2 parents 7cd6472 + 9c71eb8 commit 3f69586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ numbers to a document.
// see the range of buffered pages
const range = doc.bufferedPageRange(); // => { start: 0, count: 2 }

for (i = range.start, end = range.start + range.count, range.start <= end; i < end; i++;) {
for (i = range.start, end = range.start + range.count, range.start <= end; i < end; i++) {
doc.switchToPage(i);
doc.text(`Page ${i + 1} of ${range.count}`);
}
Expand Down

0 comments on commit 3f69586

Please sign in to comment.