Skip to content

Commit 2d1a1e0

Browse files
committed
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 <[email protected]>
1 parent 2d6ee6e commit 2d1a1e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/effective_go.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2282,8 +2282,8 @@ <h3 id="generality">Generality</h3>
22822282
<pre>
22832283
type Block interface {
22842284
BlockSize() int
2285-
Encrypt(src, dst []byte)
2286-
Decrypt(src, dst []byte)
2285+
Encrypt(dst, src []byte)
2286+
Decrypt(dst, src []byte)
22872287
}
22882288

22892289
type Stream interface {

0 commit comments

Comments
 (0)