]> Cypherpunks repositories - gostls13.git/commitdiff
all: standardize RFC mention format
authorDan Peterson <dpiddy@gmail.com>
Tue, 12 Apr 2016 19:58:56 +0000 (16:58 -0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 12 Apr 2016 21:07:52 +0000 (21:07 +0000)
Standardize on space between "RFC" and number. Additionally change
the couple "a RFC" instances to "an RFC."

Fixes #15258

Change-Id: I2b17ecd06be07dfbb4207c690f52a59ea9b04808
Reviewed-on: https://go-review.googlesource.com/21902
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
12 files changed:
src/crypto/tls/common.go
src/crypto/tls/prf.go
src/crypto/x509/pkcs8.go
src/crypto/x509/sec1.go
src/mime/encodedword.go
src/net/dnsname_test.go
src/net/http/request.go
src/net/http/response.go
src/net/http/server.go
src/net/http/transfer.go
src/net/mail/message.go
src/net/mail/message_test.go

index 572266bc8f5e5b985981aef5c2b4411b4b776b07..b3399b063c669cdbf114f2d56f33d2e9612fcba9 100644 (file)
@@ -114,7 +114,7 @@ const (
        certTypeRSAFixedDH = 3 // A certificate containing a static DH key
        certTypeDSSFixedDH = 4 // A certificate containing a static DH key
 
-       // See RFC4492 sections 3 and 5.5.
+       // See RFC 4492 sections 3 and 5.5.
        certTypeECDSASign      = 64 // A certificate containing an ECDSA-capable public key, signed with ECDSA.
        certTypeRSAFixedECDH   = 65 // A certificate containing an ECDH-capable public key, signed with RSA.
        certTypeECDSAFixedECDH = 66 // A certificate containing an ECDH-capable public key, signed with ECDSA.
index 747b817ba32f0336b664a8c7374c5ca7302b0a09..5833fc19631e4e38f0ac5c9fbf7c4afc10df72e1 100644 (file)
@@ -85,7 +85,7 @@ func prf30(result, secret, label, seed []byte) {
 
        done := 0
        i := 0
-       // RFC5246 section 6.3 says that the largest PRF output needed is 128
+       // RFC 5246 section 6.3 says that the largest PRF output needed is 128
        // bytes. Since no more ciphersuites will be added to SSLv3, this will
        // remain true. Each iteration gives us 16 bytes so 10 iterations will
        // be sufficient.
index 6e56752c0e10406b5f2b58e7619271d52f64f6d1..b304a3f63c93dc2ff3d351d28321cdffcc28b8ee 100644 (file)
@@ -13,7 +13,7 @@ import (
 
 // pkcs8 reflects an ASN.1, PKCS#8 PrivateKey. See
 // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-8/pkcs-8v1_2.asn
-// and RFC5208.
+// and RFC 5208.
 type pkcs8 struct {
        Version    int
        Algo       pkix.AlgorithmIdentifier
index 5f1b3ecc7ce189ad608ae41247cc63a4cba44423..33f376c072cf577d59b69b46a2782a176c939e25 100644 (file)
@@ -17,9 +17,9 @@ const ecPrivKeyVersion = 1
 
 // ecPrivateKey reflects an ASN.1 Elliptic Curve Private Key Structure.
 // References:
-//   RFC5915
+//   RFC 5915
 //   SEC1 - http://www.secg.org/sec1-v2.pdf
-// Per RFC5915 the NamedCurveOID is marked as ASN.1 OPTIONAL, however in
+// Per RFC 5915 the NamedCurveOID is marked as ASN.1 OPTIONAL, however in
 // most cases it is not.
 type ecPrivateKey struct {
        Version       int
index e6cbebe946d2b3e7083398762982192984700fb2..c3ca4bacd130700ccbc04a0efa00a94fd646cecb 100644 (file)
@@ -16,7 +16,7 @@ import (
        "unicode/utf8"
 )
 
-// A WordEncoder is a RFC 2047 encoded-word encoder.
+// A WordEncoder is an RFC 2047 encoded-word encoder.
 type WordEncoder byte
 
 const (
index be07dc6a16f1870e2e9c277a301ee1867c94171e..bc777b855e15c2d970b564888184270444e648e2 100644 (file)
@@ -15,7 +15,7 @@ type dnsNameTest struct {
 }
 
 var dnsNameTests = []dnsNameTest{
-       // RFC2181, section 11.
+       // RFC 2181, section 11.
        {"_xmpp-server._tcp.google.com", true},
        {"foo.com", true},
        {"1foo.com", true},
index 5bca88884518e9594b3af691d26626129d943c06..bac2de1a2ed7705b1e897f5a78ea5773ca0f7ee1 100644 (file)
@@ -817,7 +817,7 @@ func readRequest(b *bufio.Reader, deleteHostHeader bool) (req *Request, err erro
        }
        req.Header = Header(mimeHeader)
 
-       // RFC2616: Must treat
+       // RFC 2616: Must treat
        //      GET /index.html HTTP/1.1
        //      Host: www.google.com
        // and
index b49b77d8b9c78196953fcaccc50d4d47ec17def7..91d4ffb7ec79e9c35449a6df3092d165dddcbf79 100644 (file)
@@ -185,7 +185,7 @@ func ReadResponse(r *bufio.Reader, req *Request) (*Response, error) {
        return resp, nil
 }
 
-// RFC2616: Should treat
+// RFC 2616: Should treat
 //     Pragma: no-cache
 // like
 //     Cache-Control: no-cache
index deb170c3341a927e2ab69377c0a3cef2ef4b6a2e..64529f1e96b8d562272b53d910675ed1e448d768 100644 (file)
@@ -1747,7 +1747,7 @@ func Redirect(w ResponseWriter, r *Request, urlStr string, code int) {
        w.Header().Set("Location", urlStr)
        w.WriteHeader(code)
 
-       // RFC2616 recommends that a short note "SHOULD" be included in the
+       // RFC 2616 recommends that a short note "SHOULD" be included in the
        // response because older user agents may not understand 301/307.
        // Shouldn't send the response for POST or HEAD; that leaves GET.
        if r.Method == "GET" {
index 4c130f0cc49735a8eb0b9fd53bdf000b7f00a4c7..501e4be08cba59360796e46a4d782cf09dc7699b 100644 (file)
@@ -276,7 +276,7 @@ func (t *transferReader) protoAtLeast(m, n int) bool {
 }
 
 // bodyAllowedForStatus reports whether a given response status code
-// permits a body. See RFC2616, section 4.4.
+// permits a body. See RFC 2616, section 4.4.
 func bodyAllowedForStatus(status int) bool {
        switch {
        case status >= 100 && status <= 199:
@@ -368,7 +368,7 @@ func readTransfer(msg interface{}, r *bufio.Reader) (err error) {
 
        // If there is no Content-Length or chunked Transfer-Encoding on a *Response
        // and the status is not 1xx, 204 or 304, then the body is unbounded.
-       // See RFC2616, section 4.4.
+       // See RFC 2616, section 4.4.
        switch msg.(type) {
        case *Response:
                if realLength == -1 &&
index 12342b368ffdc77c5c9f24743194325de6d63ae2..9e3a103a4f76c524bbce364aebd752c9b51975a1 100644 (file)
@@ -570,7 +570,7 @@ func isQtext(c byte) bool {
        return '!' <= c && c <= '~'
 }
 
-// quoteString renders a string as a RFC5322 quoted-string.
+// quoteString renders a string as an RFC 5322 quoted-string.
 func quoteString(s string) string {
        var buf bytes.Buffer
        buf.WriteByte('"')
@@ -594,7 +594,7 @@ func isVchar(c byte) bool {
 }
 
 // isWSP reports whether c is a WSP (white space).
-// WSP is a space or horizontal tab (RFC5234 Appendix B).
+// WSP is a space or horizontal tab (RFC 5234 Appendix B).
 func isWSP(c byte) bool {
        return c == ' ' || c == '\t'
 }
index cf86ace68f95d7d9d5eb403b0d601b7d3a3c16f8..2669325c13d708c84459076b2b07cc423c6e7a8c 100644 (file)
@@ -92,7 +92,7 @@ func TestDateParsing(t *testing.T) {
                        "Fri, 21 Nov 1997 09:55:06 -0600",
                        time.Date(1997, 11, 21, 9, 55, 6, 0, time.FixedZone("", -6*60*60)),
                },
-               // RFC5322, Appendix A.6.2
+               // RFC 5322, Appendix A.6.2
                // Obsolete date.
                {
                        "21 Nov 97 09:55:06 GMT",