]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix some comments
authorcui fliter <imcusg@gmail.com>
Tue, 8 Nov 2022 03:37:59 +0000 (11:37 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 9 Nov 2022 04:03:15 +0000 (04:03 +0000)
Change-Id: I163ea3a770f2228f67d4fb1374653566e64b91f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/448575
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/cmd/compile/internal/ir/cfg.go
src/net/http/transport.go
src/net/net.go

index d986ac3a1e974e93ff0adad2218de94dd11bf222..49e1ed31cbf261959469abce5886af4616fc5c1d 100644 (file)
@@ -5,12 +5,12 @@
 package ir
 
 var (
-       // maximum size variable which we will allocate on the stack.
+       // MaxStackVarSize is the maximum size variable which we will allocate on the stack.
        // This limit is for explicit variable declarations like "var x T" or "x := ...".
        // Note: the flag smallframes can update this value.
        MaxStackVarSize = int64(10 * 1024 * 1024)
 
-       // maximum size of implicit variables that we will allocate on the stack.
+       // MaxImplicitStackVarSize is the maximum size of implicit variables that we will allocate on the stack.
        //   p := new(T)          allocating T on the stack
        //   p := &T{}            allocating T on the stack
        //   s := make([]T, n)    allocating [n]T on the stack
index b3fc08139c76abb4a836774cefc10c2bd28c56fe..671d9959ea63a7317970e17755267f91df2216c7 100644 (file)
@@ -810,14 +810,12 @@ func (t *Transport) cancelRequest(key cancelKey, err error) bool {
 //
 
 var (
-       // proxyConfigOnce guards proxyConfig
        envProxyOnce      sync.Once
        envProxyFuncValue func(*url.URL) (*url.URL, error)
 )
 
-// defaultProxyConfig returns a ProxyConfig value looked up
-// from the environment. This mitigates expensive lookups
-// on some platforms (e.g. Windows).
+// envProxyFunc returns a function that reads the
+// environment variable to determine the proxy address.
 func envProxyFunc() func(*url.URL) (*url.URL, error) {
        envProxyOnce.Do(func() {
                envProxyFuncValue = httpproxy.FromEnvironment().ProxyFunc()
index ff56c31c5634370e4a895e6bb2560fe9d2c75388..0a4f7471c417b916f2146c7c9d6c0e7d8e58487d 100644 (file)
@@ -498,7 +498,7 @@ var (
        // immediate cancellation of dials.
        aLongTimeAgo = time.Unix(1, 0)
 
-       // nonDeadline and noCancel are just zero values for
+       // noDeadline and noCancel are just zero values for
        // readability with functions taking too many parameters.
        noDeadline = time.Time{}
        noCancel   = (chan struct{})(nil)