]> Cypherpunks repositories - gostls13.git/commitdiff
all: change "true iff" to "whether" in public docs
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 22 Jul 2013 23:20:30 +0000 (16:20 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 22 Jul 2013 23:20:30 +0000 (16:20 -0700)
For consistency with Go documentation style.

R=golang-dev, khr
CC=golang-dev
https://golang.org/cl/11697043

src/pkg/crypto/ecdsa/ecdsa.go
src/pkg/crypto/x509/pkix/pkix.go
src/pkg/encoding/asn1/asn1.go

index 2550002293957fdb690f1adeb291de8e1b5e71e3..f642cb9ab777586c2ee6b28186bef598625d9935 100644 (file)
@@ -124,7 +124,7 @@ func Sign(rand io.Reader, priv *PrivateKey, hash []byte) (r, s *big.Int, err err
 }
 
 // Verify verifies the signature in r, s of hash using the public key, pub. It
-// returns true iff the signature is valid.
+// returns whether the signature is valid.
 func Verify(pub *PublicKey, hash []byte, r, s *big.Int) bool {
        // See [NSA] 3.4.2
        c := pub.Curve
index 738659011fad129d6e321420d0937c520176a8af..2c600aee3ac9fe3c9c1362cfe3721e4dc44ed459 100644 (file)
@@ -144,7 +144,7 @@ type CertificateList struct {
        SignatureValue     asn1.BitString
 }
 
-// HasExpired returns true iff now is past the expiry time of certList.
+// HasExpired returns whether now is past the expiry time of certList.
 func (certList *CertificateList) HasExpired(now time.Time) bool {
        return now.After(certList.TBSCertList.NextUpdate)
 }
index a9d17a3c14aaf673eb2aa30d195cfd14903f66f6..c53430850db770448d3c9aad4fadea5bfa59a2a5 100644 (file)
@@ -183,7 +183,7 @@ func parseBitString(bytes []byte) (ret BitString, err error) {
 // An ObjectIdentifier represents an ASN.1 OBJECT IDENTIFIER.
 type ObjectIdentifier []int
 
-// Equal returns true iff oi and other represent the same identifier.
+// Equal returns whether oi and other represent the same identifier.
 func (oi ObjectIdentifier) Equal(other ObjectIdentifier) bool {
        if len(oi) != len(other) {
                return false