From 6e72f526cdf00b18b17daa42cb08d9c0046894ff Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Fri, 21 Nov 2025 09:32:26 -0500 Subject: [PATCH] doc/next/6-stdlib/99-minor/go/ast/76031.md: add BasicLit caveat For #76395 Change-Id: Ied054b54f319a2a448ccdfa4b42044250abb5af7 Reviewed-on: https://go-review.googlesource.com/c/go/+/722820 Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov --- doc/next/6-stdlib/99-minor/go/ast/76031.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/next/6-stdlib/99-minor/go/ast/76031.md b/doc/next/6-stdlib/99-minor/go/ast/76031.md index 964872f416..fa3d9db899 100644 --- a/doc/next/6-stdlib/99-minor/go/ast/76031.md +++ b/doc/next/6-stdlib/99-minor/go/ast/76031.md @@ -3,3 +3,7 @@ a literal so that the [BasicLit.End] method can now always return the correct answer. (Previously it was computed using a heuristic that was incorrect for multi-line raw string literals in Windows source files, due to removal of carriage returns.) + +Programs that update the `ValuePos` field of `BasicLit`s produced by +the parser may need to also update or clear the `ValueEnd` field to +avoid minor differences in formatted output. -- 2.52.0