diff options
Diffstat (limited to 'src/testing/fuzz.go')
| -rw-r--r-- | src/testing/fuzz.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/fuzz.go b/src/testing/fuzz.go index e60ecadf25..87b60fc1bb 100644 --- a/src/testing/fuzz.go +++ b/src/testing/fuzz.go @@ -5,7 +5,6 @@ package testing import ( - "bytes" "errors" "flag" "fmt" @@ -14,6 +13,7 @@ import ( "path/filepath" "reflect" "runtime" + "strings" "time" ) @@ -379,7 +379,7 @@ func (f *F) Fuzz(ff any) { // fuzz worker. This would become very verbose, particularly during // minimization. Return the error instead, and let the caller deal // with the output. - var buf bytes.Buffer + var buf strings.Builder if ok := run(&buf, e); !ok { return errors.New(buf.String()) } |
