Skip to content

Commit

Permalink
doc: fix Block interface parameters order
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ALTree committed Aug 2, 2019
1 parent 2d6ee6e commit 2d1a1e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/effective_go.html
Original file line number Diff line number Diff line change
Expand Up @@ -2282,8 +2282,8 @@ <h3 id="generality">Generality</h3>
<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 {
Expand Down

0 comments on commit 2d1a1e0

Please sign in to comment.