Commit 2d1a1e0a authored by Alberto Donizetti's avatar Alberto Donizetti

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/+/188797Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 2d6ee6e8
...@@ -2282,8 +2282,8 @@ The <code>crypto/cipher</code> interfaces look like this: ...@@ -2282,8 +2282,8 @@ The <code>crypto/cipher</code> interfaces look like this:
<pre> <pre>
type Block interface { type Block interface {
BlockSize() int BlockSize() int
Encrypt(src, dst []byte) Encrypt(dst, src []byte)
Decrypt(src, dst []byte) Decrypt(dst, src []byte)
} }
type Stream interface { type Stream interface {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment