mirror of
https://github.com/golang/go
synced 2024-11-26 20:01:19 -07:00
encoding/gob: swap 'err, i' to correct verbs in decUint8Slice
Change-Id: I76b2dd45179f65e9ed4f1d0f597ca59e49b59a85
GitHub-Last-Rev: b4171e6b83
GitHub-Pull-Request: golang/go#62374
Reviewed-on: https://go-review.googlesource.com/c/go/+/524356
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Rob Pike <r@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
ac2ec69e19
commit
96fe257a42
@ -395,7 +395,7 @@ func decUint8Slice(i *decInstr, state *decoderState, value reflect.Value) {
|
||||
value.SetLen(ln)
|
||||
sub := value.Slice(i, ln)
|
||||
if _, err := state.b.Read(sub.Bytes()); err != nil {
|
||||
errorf("error decoding []byte at %d: %s", err, i)
|
||||
errorf("error decoding []byte at %d: %s", i, err)
|
||||
}
|
||||
i = ln
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user