]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix some comments
authorcui fliter <imcusg@gmail.com>
Tue, 14 Feb 2023 14:42:38 +0000 (22:42 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 14 Feb 2023 16:27:39 +0000 (16:27 +0000)
Change-Id: I16ec916b47de2f417b681c8abff5a1375ddf491b
Reviewed-on: https://go-review.googlesource.com/c/go/+/468055
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/math/big/int.go
src/net/http/server.go
src/net/http/transfer.go
src/os/tempfile.go

index d34034bd1cd4cc76af6fada8662b46576fa0a5df..c9788beebd53a9dc49f44863da1904bd163c7096 100644 (file)
@@ -1002,7 +1002,7 @@ func (z *Int) modSqrt3Mod4Prime(x, p *Int) *Int {
        return z
 }
 
-// modSqrt5Mod8 uses Atkin's observation that 2 is not a square mod p
+// modSqrt5Mod8Prime uses Atkin's observation that 2 is not a square mod p
 //
 //     alpha ==  (2*a)^((p-5)/8)    mod p
 //     beta  ==  2*a*alpha^2        mod p  is a square root of -1
index c15f0f58cb76cf27aa46cd70250ab0ca2656b026..1ac61f71315a3b137c59961663f51cf71c303274 100644 (file)
@@ -1749,7 +1749,7 @@ type closeWriter interface {
 
 var _ closeWriter = (*net.TCPConn)(nil)
 
-// closeWrite flushes any outstanding data and sends a FIN packet (if
+// closeWriteAndWait flushes any outstanding data and sends a FIN packet (if
 // client is connected via TCP), signaling that we're done. We then
 // pause for a bit, hoping the client processes it before any
 // subsequent RST.
@@ -2990,7 +2990,7 @@ func (srv *Server) ListenAndServe() error {
 
 var testHookServerServe func(*Server, net.Listener) // used if non-nil
 
-// shouldDoServeHTTP2 reports whether Server.Serve should configure
+// shouldConfigureHTTP2ForServe reports whether Server.Serve should configure
 // automatic HTTP/2. (which sets up the srv.TLSNextProto map)
 func (srv *Server) shouldConfigureHTTP2ForServe() bool {
        if srv.TLSConfig == nil {
index 7c7afd7de422648c17f74486fbff77c94c78a05f..d6f26a709c3c0e132c4b806fc6b7441b94377c36 100644 (file)
@@ -416,7 +416,7 @@ func (t *transferWriter) doBodyCopy(dst io.Writer, src io.Reader) (n int64, err
        return
 }
 
-// unwrapBodyReader unwraps the body's inner reader if it's a
+// unwrapBody unwraps the body's inner reader if it's a
 // nopCloser. This is to ensure that body writes sourced from local
 // files (*os.File types) are properly optimized.
 //
index 3be3d13dfb9c7f4c4555ca124115aac51be61008..99f65c625ae20d50fe3c33db18064b7be03e3b51 100644 (file)
@@ -117,7 +117,7 @@ func joinPath(dir, name string) string {
        return dir + string(PathSeparator) + name
 }
 
-// LastIndexByte from the strings package.
+// lastIndex from the strings package.
 func lastIndex(s string, sep byte) int {
        for i := len(s) - 1; i >= 0; i-- {
                if s[i] == sep {