From: Alberto Donizetti Date: Fri, 2 Aug 2019 17:09:20 +0000 (+0200) Subject: doc: fix Block interface parameters order X-Git-Tag: go1.13rc1~47 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2d1a1e0a2a5d2be7614fa7ec9be7ec9ed72bc820;p=gostls13.git 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 --- diff --git a/doc/effective_go.html b/doc/effective_go.html index 7bb60a0786..158f39ebc8 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -2282,8 +2282,8 @@ The crypto/cipher interfaces look like this:
 type Block interface {
     BlockSize() int
-    Encrypt(src, dst []byte)
-    Decrypt(src, dst []byte)
+    Encrypt(dst, src []byte)
+    Decrypt(dst, src []byte)
 }
 
 type Stream interface {