]> Cypherpunks repositories - gostls13.git/commit
io: unexport ErrBadWriteCount
authorRuss Cox <rsc@golang.org>
Fri, 16 Oct 2020 03:32:51 +0000 (23:32 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 16 Oct 2020 17:52:59 +0000 (17:52 +0000)
commit03f181a90ef4de680a666ca86c7988915e892e8c
tree6eb4522469e0321b7ac989baac926663fc74fd09
parent83317d9e3cb0674f71d1118d8814aefb31ac1239
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 <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/io/export_test.go [new file with mode: 0644]
src/io/io.go
src/io/io_test.go