1
0
mirror of https://github.com/golang/go synced 2024-11-11 22:10:22 -07:00

doc: fix Block interface parameters order

The Effective Go document references the crypto/cipher Block
interface, but the parameters' names are swapped. This change
alignes them to the crypto definition, to avoid confusion.

Fixes #33432

Change-Id: I8b9aac4dc6af3eec968bbc8f3ee5366b99016fcc
Reviewed-on: https://go-review.googlesource.com/c/go/+/188797
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Alberto Donizetti 2019-08-02 19:09:20 +02:00
parent 2d6ee6e89a
commit 2d1a1e0a2a

View File

@ -2282,8 +2282,8 @@ The <code>crypto/cipher</code> interfaces look like this:
<pre>
type Block interface {
BlockSize() int
Encrypt(src, dst []byte)
Decrypt(src, dst []byte)
Encrypt(dst, src []byte)
Decrypt(dst, src []byte)
}
type Stream interface {