From: Emmanuel Odeke Date: Wed, 18 May 2016 02:22:48 +0000 (-0600) Subject: crypto/x509: fix typo in docs for CreateCertificateRequest X-Git-Tag: go1.7beta1~187 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ac66bb343181bef154342638d45dcc2c695ded00;p=gostls13.git crypto/x509: fix typo in docs for CreateCertificateRequest Update the doc for CreateCertificateRequest to state that it creates a `new certificate request` instead of just a `new certificate` Fixes #14649. Change-Id: Ibbbcf91d74168998990990e78e5272a6cf294d51 Reviewed-on: https://go-review.googlesource.com/23204 Reviewed-by: Russ Cox --- diff --git a/src/crypto/x509/x509.go b/src/crypto/x509/x509.go index 6004d5cd23..9e6d67df55 100644 --- a/src/crypto/x509/x509.go +++ b/src/crypto/x509/x509.go @@ -1853,8 +1853,8 @@ func parseCSRExtensions(rawAttributes []asn1.RawValue) ([]pkix.Extension, error) return ret, nil } -// CreateCertificateRequest creates a new certificate based on a template. The -// following members of template are used: Subject, Attributes, +// CreateCertificateRequest creates a new certificate request based on a template. +// The following members of template are used: Subject, Attributes, // SignatureAlgorithm, Extensions, DNSNames, EmailAddresses, and IPAddresses. // The private key is the private key of the signer. //