From 03f181a90ef4de680a666ca86c7988915e892e8c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 15 Oct 2020 23:32:51 -0400 Subject: io: unexport ErrBadWriteCount It was added in CL 240740 to fix #39978 but without any discussion of the exported API. The error can still be returned to fix the issue, without adding new public API to package io. Also fix the error message to refer to lower-case write like the other errors in the package. Change-Id: I134de5eaf3ac903d73913c5cadcde904c5255d79 Reviewed-on: https://go-review.googlesource.com/c/go/+/262877 Trust: Russ Cox Run-TryBot: Russ Cox Reviewed-by: Emmanuel Odeke TryBot-Result: Go Bot --- src/io/export_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/io/export_test.go (limited to 'src/io/export_test.go') diff --git a/src/io/export_test.go b/src/io/export_test.go new file mode 100644 index 0000000000..fa3e8e76f6 --- /dev/null +++ b/src/io/export_test.go @@ -0,0 +1,8 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package io + +// exported for test +var ErrInvalidWrite = errInvalidWrite -- cgit v1.3