]> git.feebdaed.xyz Git - 0xmirror/go.git/commitdiff
doc/next/6-stdlib/99-minor/go/ast/76031.md: add BasicLit caveat
authorAlan Donovan <adonovan@google.com>
Fri, 21 Nov 2025 14:32:26 +0000 (09:32 -0500)
committerAlan Donovan <adonovan@google.com>
Wed, 3 Dec 2025 15:26:36 +0000 (07:26 -0800)
For #76395

Change-Id: Ied054b54f319a2a448ccdfa4b42044250abb5af7
Reviewed-on: https://go-review.googlesource.com/c/go/+/722820
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
doc/next/6-stdlib/99-minor/go/ast/76031.md

index 964872f416a7789c02cb800926e376843531eeab..fa3d9db8997af3fae28712f603420e21e4705215 100644 (file)
@@ -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. <!-- #76395 --->