Skip to content

Commit d19653c

Browse files
crypto/rsa: PublicKey.Equal() documentation specifies that it requires a pointer
Fixes #49136 For #57752 Change-Id: I6199ee5e1aa3b1ea7a152f5a5321d2c474a7781c
1 parent 122b35e commit d19653c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/crypto/rsa/rsa.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ func (pub *PublicKey) Size() int {
5858
}
5959

6060
// Equal reports whether pub and x have the same value.
61+
//
62+
// x must be a pointer to PublicKey
6163
func (pub *PublicKey) Equal(x crypto.PublicKey) bool {
6264
xx, ok := x.(*PublicKey)
6365
if !ok {

0 commit comments

Comments
 (0)