]> Cypherpunks repositories - gostls13.git/commit
internal/types: fix the iota value in error code declarations
authorRobert Findley <rfindley@google.com>
Thu, 10 Nov 2022 16:15:26 +0000 (11:15 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 10 Nov 2022 16:34:05 +0000 (16:34 +0000)
commit271f139f17c8ec5895bde52dac4056f99768e258
tree0a0ac8a808d900e90bc316669214b2e7589ca6ec
parentd3726f346925e8a6ef30b2db9de013fa314492e2
internal/types: fix the iota value in error code declarations

The new "InvalidSyntaxTree" node in the error code declaration
inadvertently incremented the value of iota by 1. Fix this by moving it
to its own declaration.

Change-Id: I34b33a8caddbbb9e41f431321ec0e5863dc15055
Reviewed-on: https://go-review.googlesource.com/c/go/+/449475
Run-TryBot: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/internal/types/errors/codes.go