]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix mismatched symbols
authorcui fliter <imcusg@gmail.com>
Fri, 5 May 2023 14:45:32 +0000 (22:45 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 13 Jun 2023 20:02:49 +0000 (20:02 +0000)
There are some symbol mismatches in the comments, this commit attempts to fix them

Change-Id: I5c9075e5218defe9233c075744d243b26ff68496
Reviewed-on: https://go-review.googlesource.com/c/go/+/492996
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: shuang cui <imcusg@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>

src/math/asinh.go
src/net/http/cookiejar/jar.go
src/runtime/exithook.go
src/runtime/metrics.go

index 6f6e9e460828d02b3175b014cbfe1c6fe95ef02c..d913239d1e2c681f34005f527e301a5bcdbbe8e4 100644 (file)
@@ -25,7 +25,7 @@ package math
 //             asinh(x) = sign(x) * log [ |x| + sqrt(x*x+1) ]
 //     we have
 //     asinh(x) := x  if  1+x*x=1,
-//              := sign(x)*(log(x)+ln2)) for large |x|, else
+//              := sign(x)*(log(x)+ln2) for large |x|, else
 //              := sign(x)*log(2|x|+1/(|x|+sqrt(x*x+1))) if|x|>2, else
 //              := sign(x)*log1p(|x| + x**2/(1 + sqrt(1+x**2)))
 //
index d5731476500788bfa488e4795123949e1b00b919..273b54c84c7fde6f329640748a25c1ac84ee05c9 100644 (file)
@@ -465,7 +465,7 @@ func (j *Jar) domainAndType(host, domain string) (string, bool, error) {
                // dot in the domain-attribute before processing the cookie.
                //
                // Most browsers don't do that for IP addresses, only curl
-               // version 7.54) and IE (version 11) do not reject a
+               // (version 7.54) and IE (version 11) do not reject a
                //     Set-Cookie: a=1; domain=.127.0.0.1
                // This leading dot is optional and serves only as hint for
                // humans to indicate that a cookie with "domain=.bbc.co.uk"
index bb29a94724d0d06c25297c4ea9633714edc3243c..65b426b383f8d6ee37538abf01a394a2243a8d70 100644 (file)
@@ -37,7 +37,7 @@ var exitHooks struct {
 // runExitHooks runs any registered exit hook functions (funcs
 // previously registered using runtime.addExitHook). Here 'exitCode'
 // is the status code being passed to os.Exit, or zero if the program
-// is terminating normally without calling os.Exit).
+// is terminating normally without calling os.Exit.
 func runExitHooks(exitCode int) {
        if exitHooks.runningExitHooks {
                throw("internal error: exit hook invoked exit")
index 442fbf64cd8da16a287bcf2892ab9abc0e57de59..4cd447a70c98c2798bcb9642b86030fab6277899 100644 (file)
@@ -72,7 +72,7 @@ func initMetrics() {
                // and exclusive lower bound (e.g. 48-byte size class is
                // (32, 48]) whereas we want and inclusive lower-bound
                // and exclusive upper-bound (e.g. 48-byte size class is
-               // [33, 49). We can achieve this by shifting all bucket
+               // [33, 49)). We can achieve this by shifting all bucket
                // boundaries up by 1.
                //
                // Also, a float64 can precisely represent integers with