Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 59b96cf

Browse files
authored
comment nits
1 parent fa490df commit 59b96cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/src/line_scanner.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,10 @@ class LineScanner extends StringScanner {
8282
// character at that position itself (the next character) is a newline
8383
// we should not use it, so also offset to account for that.
8484
const currentCharOffset = -1;
85-
// Find the last newline.
8685
final lastNewline = string.lastIndexOf(
8786
_newlineRegExp, newPosition + currentCharOffset + crOffset);
8887

89-
// No we need to know the offset after the newline. This is the index
88+
// Now we need to know the offset after the newline. This is the index
9089
// above plus the length of the newline (eg. if we found `\r\n`) we need
9190
// to add two. However if no newline was found, that index is 0.
9291
final offsetAfterLastNewline = lastNewline == -1

0 commit comments

Comments
 (0)