]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: fix typo in Verify documentation
authorMikkel Krautz <mikkel@krautz.dk>
Mon, 27 Feb 2012 00:49:06 +0000 (11:49 +1100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 27 Feb 2012 00:49:06 +0000 (11:49 +1100)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5695070

src/pkg/crypto/x509/verify.go

index 87b1cb7bb1c35ecad92703a3ace72c3bba19ab05..3859dd8d4888cbc19fe401274056f69d084055c0 100644 (file)
@@ -135,8 +135,8 @@ func (c *Certificate) isValid(certType int, opts *VerifyOptions) error {
 
 // Verify attempts to verify c by building one or more chains from c to a
 // certificate in opts.roots, using certificates in opts.Intermediates if
-// needed. If successful, it returns one or chains where the first element of
-// the chain is c and the last element is from opts.Roots.
+// needed. If successful, it returns one or more chains where the first
+// element of the chain is c and the last element is from opts.Roots.
 //
 // WARNING: this doesn't do any revocation checking.
 func (c *Certificate) Verify(opts VerifyOptions) (chains [][]*Certificate, err error) {