]> Cypherpunks repositories - gostls13.git/commit
go/token: simplify fixOffset
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Fri, 23 Jan 2026 15:12:27 +0000 (16:12 +0100)
committerGopher Robot <gobot@golang.org>
Thu, 29 Jan 2026 21:17:22 +0000 (13:17 -0800)
commit48788436b8c9a87d056e52cf90d493940b610b4d
treea00b7d17c13a8e78558e77413a9884bc270deb31
parent5593ea463498dce06a1b52dce2918912a9db6c4e
go/token: simplify fixOffset

Each time I go to definition of this I am deeply confused
at what I am looking, so let's clean this a bit with modern Go.

Change-Id: I8f44e78f0cdde9b970388f9b98a2720e6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/738341
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/token/position.go