From: Alan Donovan Date: Fri, 21 Nov 2025 14:32:26 +0000 (-0500) Subject: doc/next/6-stdlib/99-minor/go/ast/76031.md: add BasicLit caveat X-Git-Tag: go1.26rc1~11 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6e72f526cdf00b18b17daa42cb08d9c0046894ff;p=gostls13.git 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 --- 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.