Skip to content

Commit

Permalink
Fix typo in IsErrEncryptedKey doc comment
Browse files Browse the repository at this point in the history
Spotted while reading over the documentation.

Signed-off-by: Adam Chalkley <[email protected]>
  • Loading branch information
atc0005 committed Jul 22, 2021
1 parent 57e36d5 commit f82d5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tlsconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func adjustMinVersion(options Options, config *tls.Config) error {
}

// IsErrEncryptedKey returns true if the 'err' is an error of incorrect
// password when tryin to decrypt a TLS private key
// password when trying to decrypt a TLS private key
func IsErrEncryptedKey(err error) bool {
return errors.Cause(err) == x509.IncorrectPasswordError
}
Expand Down

0 comments on commit f82d5a5

Please sign in to comment.