Skip to content

Commit

Permalink
crypto/rsa: PublicKey.Equal() documentation specifies that it require…
Browse files Browse the repository at this point in the history
…s a pointer

Fixes #49136
For #57752

Change-Id: I6199ee5e1aa3b1ea7a152f5a5321d2c474a7781c
  • Loading branch information
qiulaidongfeng committed Oct 3, 2023
1 parent 122b35e commit d19653c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/crypto/rsa/rsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ func (pub *PublicKey) Size() int {
}

// Equal reports whether pub and x have the same value.
//
// x must be a pointer to PublicKey
func (pub *PublicKey) Equal(x crypto.PublicKey) bool {
xx, ok := x.(*PublicKey)
if !ok {
Expand Down

0 comments on commit d19653c

Please sign in to comment.