remove broken code accounting an offset the size of the line #10186
diff --git a/Misc/NEWS b/Misc/NEWS
index 4c7dc4b..98bc24f 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@
 Core and Builtins
 -----------------
 
+- Issue #10186: Fix the SyntaxError caret when the offset is equal to the length
+  of the offending line.
+
 - Issue #6011: sysconfig and distutils.sysconfig use the surrogateescape error
   handler to parse the Makefile file. Avoid a UnicodeDecodeError if the source
   code directory name contains a non-ASCII character and the locale encoding is