From 1f59e987e6c49e2f167fa47967f4716bad1cdf69 Mon Sep 17 00:00:00 2001 From: Robert Nystrom Date: Tue, 13 Aug 2024 19:00:44 -0700 Subject: [PATCH] Fix offsets in comment. --- lib/src/back_end/code.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/back_end/code.dart b/lib/src/back_end/code.dart index 2a5ea1c8..69caaa84 100644 --- a/lib/src/back_end/code.dart +++ b/lib/src/back_end/code.dart @@ -306,9 +306,9 @@ class _StringBuilder { // `on` turns formatting back on, and `more` is formatted code at the // end. // - // We know the beginning of the unformatted region is at offset 10 + // We know the beginning of the unformatted region is at offset 15 // (just after the comment) in the original ource. We know the - // selection marker is at offset 16 in the original source. From that, + // selection marker is at offset 21 in the original source. From that, // we know the selection marker should end up 6 code points after the // beginning of the unformatted region in the resulting output. switch (code._marker) {