aboutsummaryrefslogtreecommitdiff
path: root/src/internal/pkgbits/encoder.go
diff options
context:
space:
mode:
authorhopehook <hopehook.com@gmail.com>2022-08-04 10:12:20 +0800
committerMatthew Dempsky <mdempsky@google.com>2022-08-04 20:35:21 +0000
commit91d5ce3def7c967b23de37546439bb4714e26e8a (patch)
tree5b4c435f91279ba82eaed7432339f621f5c39c50 /src/internal/pkgbits/encoder.go
parent39728f412d5fb6d97568cc84a42f1caf07dbaedc (diff)
downloadgo-91d5ce3def7c967b23de37546439bb4714e26e8a.tar.xz
all: clean up TODO after fixing issue 44505
For #44505 Change-Id: I89220be02372b5340cb987bf2ac870a9346a8c8f Reviewed-on: https://go-review.googlesource.com/c/go/+/421079 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/internal/pkgbits/encoder.go')
-rw-r--r--src/internal/pkgbits/encoder.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/internal/pkgbits/encoder.go b/src/internal/pkgbits/encoder.go
index ec47e352cb..07695b5751 100644
--- a/src/internal/pkgbits/encoder.go
+++ b/src/internal/pkgbits/encoder.go
@@ -12,6 +12,7 @@ import (
"io"
"math/big"
"runtime"
+ "strings"
)
// currentVersion is the current version number.
@@ -161,7 +162,7 @@ type Encoder struct {
// Flush finalizes the element's bitstream and returns its Index.
func (w *Encoder) Flush() Index {
- var sb bytes.Buffer // TODO(mdempsky): strings.Builder after #44505 is resolved
+ var sb strings.Builder
// Backup the data so we write the relocations at the front.
var tmp bytes.Buffer