]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: replace `` and '' with “ (U+201C) and ” (U+201D) in doc comments
authorRuss Cox <rsc@golang.org>
Thu, 3 Feb 2022 19:05:46 +0000 (14:05 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 5 Apr 2022 17:52:29 +0000 (17:52 +0000)
go/doc in all its forms applies this replacement when rendering
the comments. We are considering formatting doc comments,
including doing this replacement as part of the formatting.
Apply it to our source files ahead of time.

For #51082.

Change-Id: Ifcc1f5861abb57c5d14e7d8c2102dfb31b7a3a19
Reviewed-on: https://go-review.googlesource.com/c/go/+/384262
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
50 files changed:
src/cmd/go/internal/bug/bug.go
src/cmd/go/internal/clean/clean.go
src/cmd/go/internal/doc/doc.go
src/cmd/go/internal/envcmd/env.go
src/cmd/go/internal/fix/fix.go
src/cmd/go/internal/fmtcmd/fmt.go
src/cmd/go/internal/generate/generate.go
src/cmd/go/internal/get/get.go
src/cmd/go/internal/help/help.go
src/cmd/go/internal/list/list.go
src/cmd/go/internal/modcmd/mod.go
src/cmd/go/internal/modget/get.go
src/cmd/go/internal/run/run.go
src/cmd/go/internal/tool/tool.go
src/cmd/go/internal/version/version.go
src/cmd/go/internal/vet/vet.go
src/cmd/go/internal/workcmd/work.go
src/cmd/link/internal/ld/data.go
src/cmd/vendor/golang.org/x/arch/x86/x86asm/gnu.go
src/cmd/vendor/golang.org/x/arch/x86/x86asm/inst.go
src/compress/bzip2/bzip2.go
src/compress/lzw/reader.go
src/crypto/rsa/pkcs1v15.go
src/debug/dwarf/entry.go
src/debug/dwarf/type.go
src/encoding/asn1/asn1.go
src/encoding/base32/base32.go
src/encoding/json/decode.go
src/fmt/print.go
src/go/doc/testdata/testing.go
src/internal/testenv/testenv.go
src/math/big/floatconv.go
src/math/big/int.go
src/math/big/intconv.go
src/math/big/natconv.go
src/math/big/ratconv.go
src/math/bits.go
src/math/cmplx/isnan.go
src/net/http/server.go
src/net/url/url.go
src/os/file_plan9.go
src/os/file_unix.go
src/os/file_windows.go
src/path/filepath/path.go
src/path/path.go
src/reflect/deepequal.go
src/regexp/exec_test.go
src/regexp/syntax/prog.go
src/runtime/float.go
src/time/tick.go

index 702dc2a14acdaad63f13bcd802541dd3141f3362..b4181b1e44adc86cf221f852b805adf090c2d667 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package bug implements the ``go bug'' command.
+// Package bug implements the “go bug” command.
 package bug
 
 import (
index dc93cdf5983126c42adeddb2504276a8a41f834f..8564411fb6c15424c2aab55dd06fcd5b4b6eeb05 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package clean implements the ``go clean'' command.
+// Package clean implements the “go clean” command.
 package clean
 
 import (
index 7741a9022c910a0bee6c4084e55503bc6aea9c09..3b6cd94799ada37541a9eb93a1228e0d87fb26ee 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package doc implements the ``go doc'' command.
+// Package doc implements the “go doc” command.
 package doc
 
 import (
index aab21af8557c49531943e42aba9a696feed803ce..529351dfbd8a78f93502d8d2a741ddbac013258c 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package envcmd implements the ``go env'' command.
+// Package envcmd implements the “go env” command.
 package envcmd
 
 import (
index d8ba353de6595091f10b693bcb3aed1fde9d2e0d..3705b30ef9533c0efcbf25e84b06cf7f33338d76 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package fix implements the ``go fix'' command.
+// Package fix implements the “go fix” command.
 package fix
 
 import (
index 19656eab7fc661c4cea1fabf55630f38ab2b3c98..3dc29d40b2f56a668cfe12f23b4f1eb068d3db01 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package fmtcmd implements the ``go fmt'' command.
+// Package fmtcmd implements the “go fmt” command.
 package fmtcmd
 
 import (
index 54ccfe78f24b66d526bc4b386b8ebc282603a140..0021bcc75aa2b37c6e07892913b0169fc0daa211 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package generate implements the ``go generate'' command.
+// Package generate implements the “go generate” command.
 package generate
 
 import (
index 8cf8fe6645f369d47d84de3321e195e0b727cf22..1bb67bcf51b55aa87f6137938103af0f7856f2b6 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package get implements the ``go get'' command.
+// Package get implements the “go get” command.
 package get
 
 import (
index 2a07d2423bdd9e46eb397228214cde2b13226695..f73097af8455aaed024543c20ee19445458331c6 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package help implements the ``go help'' command.
+// Package help implements the “go help” command.
 package help
 
 import (
index 5fc33989cd934a0d459cb53df04934683ec4ade3..e039b9faa178d8d931e3dbd7e7e164b5f3c42894 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package list implements the ``go list'' command.
+// Package list implements the “go list” command.
 package list
 
 import (
index d72d0cacd68ddafdc2723c00ca3d7f04a7aa62bc..125ba336a0edda95e7570253c5ec40b962a91c56 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package modcmd implements the ``go mod'' command.
+// Package modcmd implements the “go mod” command.
 package modcmd
 
 import (
index 3d8463e892c69ad5fdd5cb7885a7d4b65d6e0893..751f15aaacb7bf7dd27dd67dd8ed404a21894b06 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package modget implements the module-aware ``go get'' command.
+// Package modget implements the module-aware “go get” command.
 package modget
 
 // The arguments to 'go get' are patterns with optional version queries, with
index 35c57833730c7e3131299b1e0c2159fc8eab197e..ebe161181901bb954a7a932e672601ece3d6a89a 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package run implements the ``go run'' command.
+// Package run implements the “go run” command.
 package run
 
 import (
index 4fe4c2baeda1ff7dbe1a1360f9a1d6d8dd9cb5f4..e8b55092d83e8e226768e70d04d1227cbc28479e 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package tool implements the ``go tool'' command.
+// Package tool implements the “go tool” command.
 package tool
 
 import (
index 1c0eb5407d960d78ae725c3371d459d617a64467..5de7b83efaea8308a274133c6eaa4588f7367f3a 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package version implements the ``go version'' command.
+// Package version implements the “go version” command.
 package version
 
 import (
index d3e0dd8116f481ef4d8e72e5c467a75110cde9bc..a0b11fdd3dc5f19990215ad71aebdb7533d383be 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package vet implements the ``go vet'' command.
+// Package vet implements the “go vet” command.
 package vet
 
 import (
index 39c81e8f5dc05366ab38ad15f3d7d9379be45ee8..c99cc2a3fa9d16dcd4f9d593fd02d728eeb54390 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package workcmd implements the ``go work'' command.
+// Package workcmd implements the “go work” command.
 package workcmd
 
 import (
index 0ec1e526a9840d0201fc8776c3e20874613a56cd..1e98452dc097b40f76b150be35dd3033fa29628f 100644 (file)
@@ -2140,7 +2140,7 @@ func (state *dodataState) dodataSect(ctxt *Link, symn sym.SymKind, syms []loader
 // Non-ELF binary formats are not always flexible enough to
 // give us a place to put the Go build ID. On those systems, we put it
 // at the very beginning of the text segment.
-// This ``header'' is read by cmd/go.
+// This “header” is read by cmd/go.
 func (ctxt *Link) textbuildid() {
        if ctxt.IsELF || ctxt.BuildMode == BuildModePlugin || *flagBuildid == "" {
                return
index 75cff72b0390e002ed82159944a0c8360a3cbcba..8eba1fd0cf76b6cbd44ad68745b67dedc9332765 100644 (file)
@@ -10,7 +10,7 @@ import (
 )
 
 // GNUSyntax returns the GNU assembler syntax for the instruction, as defined by GNU binutils.
-// This general form is often called ``AT&T syntax'' as a reference to AT&T System V Unix.
+// This general form is often called “AT&T syntax” as a reference to AT&T System V Unix.
 func GNUSyntax(inst Inst, pc uint64, symname SymLookup) string {
        // Rewrite instruction to mimic GNU peculiarities.
        // Note that inst has been passed by value and contains
index 4632b5064f9e74f5e4ac2a4e1456ada5e3630f5d..e98f1a8418c58317bb0ab76eb6e7b3d6a58ae0c6 100644 (file)
@@ -144,7 +144,7 @@ type Arg interface {
 // the interface value instead of requiring an allocation.
 
 // A Reg is a single register.
-// The zero Reg value has no name but indicates ``no register.''
+// The zero Reg value has no name but indicates “no register.”
 type Reg uint8
 
 const (
index 0d8c286c1670c2c6e9c422d40c9869057a358f77..51054ccabc9dfa5348a3525d8c9a709abbcaca2e 100644 (file)
@@ -447,11 +447,11 @@ func (bz2 *reader) readBlock() (err error) {
 
 // inverseBWT implements the inverse Burrows-Wheeler transform as described in
 // http://www.hpl.hp.com/techreports/Compaq-DEC/SRC-RR-124.pdf, section 4.2.
-// In that document, origPtr is called ``I'' and c is the ``C'' array after the
+// In that document, origPtr is called “I” and c is the “C” array after the
 // first pass over the data. It's an argument here because we merge the first
 // pass with the Huffman decoding.
 //
-// This also implements the ``single array'' method from the bzip2 source code
+// This also implements the “single array” method from the bzip2 source code
 // which leaves the output, still shuffled, in the bottom 8 bits of tt with the
 // index of the next byte in the top 24-bits. The index of the first byte is
 // returned.
index 952870a56a2c9bc6d945e7e7b1560589fb805d04..18df97029f2ea449f414f3ae7edd37f6086373c3 100644 (file)
@@ -3,8 +3,8 @@
 // license that can be found in the LICENSE file.
 
 // Package lzw implements the Lempel-Ziv-Welch compressed data format,
-// described in T. A. Welch, ``A Technique for High-Performance Data
-// Compression'', Computer, 17(6) (June 1984), pp 8-19.
+// described in T. A. Welch, A Technique for High-Performance Data
+// Compression, Computer, 17(6) (June 1984), pp 8-19.
 //
 // In particular, it implements LZW as used by the GIF and PDF file
 // formats, which means variable-width codes up to 12 bits and the first
index 0cbd6d004561c96fb9e641e0b92d637c49e43c90..601b323ff495e6d74db270a06d5a113ffeaa3fee 100644 (file)
@@ -96,8 +96,8 @@ func DecryptPKCS1v15(rand io.Reader, priv *PrivateKey, ciphertext []byte) ([]byt
 // session key beforehand and continue the protocol with the resulting value.
 // This will remove any possibility that an attacker can learn any information
 // about the plaintext.
-// See ``Chosen Ciphertext Attacks Against Protocols Based on the RSA
-// Encryption Standard PKCS #1'', Daniel Bleichenbacher, Advances in Cryptology
+// See Chosen Ciphertext Attacks Against Protocols Based on the RSA
+// Encryption Standard PKCS #1, Daniel Bleichenbacher, Advances in Cryptology
 // (Crypto '98).
 //
 // Note that if the session key is too small then it may be possible for an
index 9f3f4971e18b56dd1a71dc1d40c492cb765e847f..b1bb5910219a7a47a72c723f401f5e88bc5865aa 100644 (file)
@@ -789,7 +789,7 @@ func (b *buf) entry(cu *Entry, atab abbrevTable, ubase Offset, vers int) *Entry
        return e
 }
 
-// A Reader allows reading Entry structures from a DWARF ``info'' section.
+// A Reader allows reading Entry structures from a DWARF “info” section.
 // The Entry structures are arranged in a tree. The Reader's Next function
 // return successive entries from a pre-order traversal of the tree.
 // If an entry has children, its Children field will be true, and the children
@@ -806,7 +806,7 @@ type Reader struct {
 }
 
 // Reader returns a new Reader for Data.
-// The reader is positioned at byte offset 0 in the DWARF ``info'' section.
+// The reader is positioned at byte offset 0 in the DWARF “info” section.
 func (d *Data) Reader() *Reader {
        r := &Reader{d: d}
        r.Seek(0)
index 9c15cfb920612ed49ca570d548c4ef81914baf25..2049f46d708ddea856990eab1e4ef3c90bcbcf6c 100644 (file)
@@ -372,7 +372,7 @@ type typeReader interface {
        AddressSize() int
 }
 
-// Type reads the type at off in the DWARF ``info'' section.
+// Type reads the type at off in the DWARF “info” section.
 func (d *Data) Type(off Offset) (Type, error) {
        return d.readType("info", d.Reader(), off, d.typeCache, nil)
 }
index cad1d7b08f8e9a437119c234e89df9a33d444f48..c90bba47dcf8e8a94c66b98d16c2557fe8d89f0d 100644 (file)
@@ -5,7 +5,7 @@
 // Package asn1 implements parsing of DER-encoded ASN.1 data structures,
 // as defined in ITU-T Rec X.690.
 //
-// See also ``A Layman's Guide to a Subset of ASN.1, BER, and DER,''
+// See also “A Layman's Guide to a Subset of ASN.1, BER, and DER,”
 // http://luca.ntop.org/Teaching/Appunti/asn1.html.
 package asn1
 
index 3feea9ba473f7fd0d82e2e71af22a31767d5d7a7..5f3af4c8bbe28a7eec599e809391cfa2f5a7dad8 100644 (file)
@@ -56,7 +56,7 @@ func NewEncoding(encoder string) *Encoding {
 // RFC 4648.
 var StdEncoding = NewEncoding(encodeStd)
 
-// HexEncoding is the ``Extended Hex Alphabet'' defined in RFC 4648.
+// HexEncoding is the “Extended Hex Alphabet” defined in RFC 4648.
 // It is typically used in DNS.
 var HexEncoding = NewEncoding(encodeHex)
 
index ce9675a62fc159634df7dbbe46bdf1bced546100..4319918d1e54215185db8f9f70b5e5c0c531ec18 100644 (file)
@@ -85,7 +85,7 @@ import (
 //
 // The JSON null value unmarshals into an interface, map, pointer, or slice
 // by setting that Go value to nil. Because null is often used in JSON to mean
-// ``not present,'' unmarshaling a JSON null into any other Go type has no effect
+// “not present,” unmarshaling a JSON null into any other Go type has no effect
 // on the value and produces no error.
 //
 // When unmarshaling quoted strings, invalid UTF-8 or
index 1c37c3cb7b3896ef61f980196fd7ededdba7104a..33f5541629097c3ae1c77b5c0535702178025892 100644 (file)
@@ -55,7 +55,7 @@ type Formatter interface {
 }
 
 // Stringer is implemented by any value that has a String method,
-// which defines the ``native'' format for that value.
+// which defines the “native” format for that value.
 // The String method is used to print values passed as an operand
 // to any format that accepts a string or to an unformatted printer
 // such as Print.
index 80238df283a7eb35eeeae817a29c1043717e2f0d..6365ffceedc6dda957eb4b6e73ca59efe2307f05 100644 (file)
@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // Package testing provides support for automated testing of Go packages.
-// It is intended to be used in concert with the ``go test'' utility, which automates
+// It is intended to be used in concert with the “go test” utility, which automates
 // execution of any function of the form
 //     func TestXxx(*testing.T)
 // where Xxx can be any alphanumeric string (but the first letter must not be in
index 6ef889b02a9dbfcf331f5b115974d49a96008843..1feb630cf5fa38e137c0e1a9c1267d1a79b37dbd 100644 (file)
@@ -35,7 +35,7 @@ func Builder() string {
        return os.Getenv("GO_BUILDER_NAME")
 }
 
-// HasGoBuild reports whether the current system can build programs with ``go build''
+// HasGoBuild reports whether the current system can build programs with “go build”
 // and then run them with os.StartProcess or exec.Command.
 func HasGoBuild() bool {
        if os.Getenv("GO_GCFLAGS") != "" {
@@ -52,7 +52,7 @@ func HasGoBuild() bool {
        return true
 }
 
-// MustHaveGoBuild checks that the current system can build programs with ``go build''
+// MustHaveGoBuild checks that the current system can build programs with “go build”
 // and then run them with os.StartProcess or exec.Command.
 // If not, MustHaveGoBuild calls t.Skip with an explanation.
 func MustHaveGoBuild(t testing.TB) {
@@ -64,13 +64,13 @@ func MustHaveGoBuild(t testing.TB) {
        }
 }
 
-// HasGoRun reports whether the current system can run programs with ``go run.''
+// HasGoRun reports whether the current system can run programs with “go run.”
 func HasGoRun() bool {
        // For now, having go run and having go build are the same.
        return HasGoBuild()
 }
 
-// MustHaveGoRun checks that the current system can run programs with ``go run.''
+// MustHaveGoRun checks that the current system can run programs with “go run.”
 // If not, MustHaveGoRun calls t.Skip with an explanation.
 func MustHaveGoRun(t testing.TB) {
        if !HasGoRun() {
index 93f7195219f79b4190dd0faa40e95a2cf4cb36c7..30b6dc4332e920c6e36526e9fc4ebff6f5cabdd7 100644 (file)
@@ -215,7 +215,7 @@ func (z *Float) pow5(n uint64) *Float {
 // point number with a mantissa in the given conversion base (the exponent
 // is always a decimal number), or a string representing an infinite value.
 //
-// For base 0, an underscore character ``_'' may appear between a base
+// For base 0, an underscore character “_” may appear between a base
 // prefix and an adjacent digit, and between successive digits; such
 // underscores do not change the value of the number, or the returned
 // digit count. Incorrect placement of underscores is reported as an
@@ -243,8 +243,8 @@ func (z *Float) pow5(n uint64) *Float {
 // argument will lead to a run-time panic.
 //
 // For base 0, the number prefix determines the actual base: A prefix of
-// ``0b'' or ``0B'' selects base 2, ``0o'' or ``0O'' selects base 8, and
-// ``0x'' or ``0X'' selects base 16. Otherwise, the actual base is 10 and
+// “0b” or “0B” selects base 2, “0o” or “0O” selects base 8, and
+// “0x” or “0X” selects base 16. Otherwise, the actual base is 10 and
 // no prefix is accepted. The octal prefix "0" is not supported (a leading
 // "0" is simply considered a "0").
 //
index 700d00d031ad9f035b7ccc64ff37f50a206c3dd7..a111451eaf6c266ded67d26919283a7ed0741e2b 100644 (file)
@@ -231,7 +231,7 @@ func (z *Int) Rem(x, y *Int) *Int {
 //     q = x/y      with the result truncated to zero
 //     r = x - y*q
 //
-// (See Daan Leijen, ``Division and Modulus for Computer Scientists''.)
+// (See Daan Leijen, “Division and Modulus for Computer Scientists”.)
 // See DivMod for Euclidean division and modulus (unlike Go).
 func (z *Int) QuoRem(x, y, r *Int) (*Int, *Int) {
        z.abs, r.abs = z.abs.div(r.abs, x.abs, y.abs)
@@ -285,8 +285,8 @@ func (z *Int) Mod(x, y *Int) *Int {
 //     q = x div y  such that
 //     m = x - y*q  with 0 <= m < |y|
 //
-// (See Raymond T. Boute, ``The Euclidean definition of the functions
-// div and mod''. ACM Transactions on Programming Languages and
+// (See Raymond T. Boute, The Euclidean definition of the functions
+// div and mod. ACM Transactions on Programming Languages and
 // Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992.
 // ACM press.)
 // See QuoRem for T-division and modulus (like Go).
@@ -400,8 +400,8 @@ func (x *Int) IsUint64() bool {
 //
 // The base argument must be 0 or a value between 2 and MaxBase.
 // For base 0, the number prefix determines the actual base: A prefix of
-// ``0b'' or ``0B'' selects base 2, ``0'', ``0o'' or ``0O'' selects base 8,
-// and ``0x'' or ``0X'' selects base 16. Otherwise, the selected base is 10
+// “0b” or “0B” selects base 2, “0”, “0o” or “0O” selects base 8,
+// and “0x” or “0X” selects base 16. Otherwise, the selected base is 10
 // and no prefix is accepted.
 //
 // For bases <= 36, lower and upper case letters are considered the same:
@@ -409,7 +409,7 @@ func (x *Int) IsUint64() bool {
 // For bases > 36, the upper case letters 'A' to 'Z' represent the digit
 // values 36 to 61.
 //
-// For base 0, an underscore character ``_'' may appear between a base
+// For base 0, an underscore character “_” may appear between a base
 // prefix and an adjacent digit, and between successive digits; such
 // underscores do not change the value of the number.
 // Incorrect placement of underscores is reported as an error if there
index 2fe10ff0a24ca25de0cc40901e0257b2248e7eb5..a3a4023caa69749eaeeadc7ff8146e74fee6c917 100644 (file)
@@ -174,8 +174,8 @@ func (x *Int) Format(s fmt.State, ch rune) {
 //
 // The base argument must be 0 or a value from 2 through MaxBase. If the base
 // is 0, the string prefix determines the actual conversion base. A prefix of
-// ``0b'' or ``0B'' selects base 2; a ``0'', ``0o'', or ``0O'' prefix selects
-// base 8, and a ``0x'' or ``0X'' prefix selects base 16. Otherwise the selected
+// “0b” or “0B” selects base 2; a “0”, “0o”, or “0O” prefix selects
+// base 8, and a “0x” or “0X” prefix selects base 16. Otherwise the selected
 // base is 10.
 func (z *Int) scan(r io.ByteScanner, base int) (*Int, int, error) {
        // determine sign
index 99488ac833a797d6e56690553e74d84fc6182a96..8fdf4b6f9e343df31ef0ae79aadbd2fdf18a7bbb 100644 (file)
@@ -66,7 +66,7 @@ var (
 // scan returns the corresponding natural number res, the actual base b,
 // a digit count, and a read or syntax error err, if any.
 //
-// For base 0, an underscore character ``_'' may appear between a base
+// For base 0, an underscore character “_” may appear between a base
 // prefix and an adjacent digit, and between successive digits; such
 // underscores do not change the value of the number, or the returned
 // digit count. Incorrect placement of underscores is reported as an
@@ -87,8 +87,8 @@ var (
 // time panic.
 //
 // For base 0, the number prefix determines the actual base: A prefix of
-// ``0b'' or ``0B'' selects base 2, ``0o'' or ``0O'' selects base 8, and
-// ``0x'' or ``0X'' selects base 16. If fracOk is false, a ``0'' prefix
+// “0b” or “0B” selects base 2, “0o” or “0O” selects base 8, and
+// “0x” or “0X” selects base 16. If fracOk is false, a “0” prefix
 // (immediately followed by digits) selects base 8 as well. Otherwise,
 // the selected base is 10 and no prefix is accepted.
 //
index dadd4d7b8ee9e9d4e001089bacf9daec09003b94..794a51d007a70a5b03290a5045831af46973b94c 100644 (file)
@@ -41,16 +41,16 @@ func (z *Rat) Scan(s fmt.ScanState, ch rune) error {
 // success. s can be given as a (possibly signed) fraction "a/b", or as a
 // floating-point number optionally followed by an exponent.
 // If a fraction is provided, both the dividend and the divisor may be a
-// decimal integer or independently use a prefix of ``0b'', ``0'' or ``0o'',
-// or ``0x'' (or their upper-case variants) to denote a binary, octal, or
+// decimal integer or independently use a prefix of “0b”, “0” or “0o”,
+// or “0x” (or their upper-case variants) to denote a binary, octal, or
 // hexadecimal integer, respectively. The divisor may not be signed.
 // If a floating-point number is provided, it may be in decimal form or
-// use any of the same prefixes as above but for ``0'' to denote a non-decimal
-// mantissa. A leading ``0'' is considered a decimal leading 0; it does not
+// use any of the same prefixes as above but for “0” to denote a non-decimal
+// mantissa. A leading “0” is considered a decimal leading 0; it does not
 // indicate octal representation in this case.
-// An optional base-10 ``e'' or base-2 ``p'' (or their upper-case variants)
+// An optional base-10 “e” or base-2 “p” (or their upper-case variants)
 // exponent may be provided as well, except for hexadecimal floats which
-// only accept an (optional) ``p'' exponent (because an ``e'' or ``E'' cannot
+// only accept an (optional) “p” exponent (because an “e” or “E” cannot
 // be distinguished from a mantissa digit). If the exponent's absolute value
 // is too large, the operation may fail.
 // The entire string, not just a prefix, must be valid for success. If the
@@ -205,10 +205,10 @@ func (z *Rat) SetString(s string) (*Rat, bool) {
 }
 
 // scanExponent scans the longest possible prefix of r representing a base 10
-// (``e'', ``E'') or a base 2 (``p'', ``P'') exponent, if any. It returns the
+// (“e”, “E”) or a base 2 (“p”, “P”) exponent, if any. It returns the
 // exponent, the exponent base (10 or 2), or a read or syntax error, if any.
 //
-// If sepOk is set, an underscore character ``_'' may appear between successive
+// If sepOk is set, an underscore character “_” may appear between successive
 // exponent digits; such underscores do not change the value of the exponent.
 // Incorrect placement of underscores is reported as an error if there are no
 // other errors. If sepOk is not set, underscores are not recognized and thus
index 77bcdbe1ce649a662049c005e34c06dfbecd6e86..c5cb93b15945d47365865da990e93e46e430c1bd 100644 (file)
@@ -27,10 +27,10 @@ func Inf(sign int) float64 {
        return Float64frombits(v)
 }
 
-// NaN returns an IEEE 754 ``not-a-number'' value.
+// NaN returns an IEEE 754 “not-a-number” value.
 func NaN() float64 { return Float64frombits(uvnan) }
 
-// IsNaN reports whether f is an IEEE 754 ``not-a-number'' value.
+// IsNaN reports whether f is an IEEE 754 “not-a-number” value.
 func IsNaN(f float64) (is bool) {
        // IEEE 754 says that only NaNs satisfy f != f.
        // To avoid the floating-point hardware, could use:
index d3382c05eefd81030933cde3a389f2ea343cea33..fed442cb483672306c0604f913c628c9fa16c798 100644 (file)
@@ -18,7 +18,7 @@ func IsNaN(x complex128) bool {
        return false
 }
 
-// NaN returns a complex ``not-a-number'' value.
+// NaN returns a complex “not-a-number” value.
 func NaN() complex128 {
        nan := math.NaN()
        return complex(nan, nan)
index b91069f9a16bfce31040930708bfe0deccfc572c..bd4ef1baccd00907d76dfe92031002eb18c4909c 100644 (file)
@@ -2101,7 +2101,7 @@ func Error(w ResponseWriter, error string, code int) {
 func NotFound(w ResponseWriter, r *Request) { Error(w, "404 page not found", StatusNotFound) }
 
 // NotFoundHandler returns a simple request handler
-// that replies to each request with a ``404 page not found'' reply.
+// that replies to each request with a “404 page not found” reply.
 func NotFoundHandler() Handler { return HandlerFunc(NotFound) }
 
 // StripPrefix returns a handler that serves HTTP requests by removing the
@@ -2394,7 +2394,7 @@ func (mux *ServeMux) shouldRedirectRLocked(host, path string) bool {
 // the pattern that will match after following the redirect.
 //
 // If there is no registered handler that applies to the request,
-// Handler returns a ``page not found'' handler and an empty pattern.
+// Handler returns a “page not found” handler and an empty pattern.
 func (mux *ServeMux) Handler(r *Request) (h Handler, pattern string) {
 
        // CONNECT requests are not canonicalized.
index ecfd1d9e94b84619b80500d7b9d4fc9c0fc81a3c..bff6513b85fc039a3926a18e6f41b38dc10d1847 100644 (file)
@@ -381,9 +381,9 @@ func User(username string) *Userinfo {
 //
 // This functionality should only be used with legacy web sites.
 // RFC 2396 warns that interpreting Userinfo this way
-// ``is NOT RECOMMENDED, because the passing of authentication
+// is NOT RECOMMENDED, because the passing of authentication
 // information in clear text (such as URI) has proven to be a
-// security risk in almost every case where it has been used.''
+// security risk in almost every case where it has been used.
 func UserPassword(username, password string) *Userinfo {
        return &Userinfo{username, password, true}
 }
@@ -960,7 +960,7 @@ func parseQuery(m Values, query string) (err error) {
        return err
 }
 
-// Encode encodes the values into ``URL encoded'' form
+// Encode encodes the values into “URL encoded” form
 // ("bar=baz&foo=quux") sorted by key.
 func (v Values) Encode() string {
        if v == nil {
index 887e1c889232b3536c0e6db2483b42b66ac8b4bb..93eb233e004a793fa3f56b5e9c04c5b6312f219f 100644 (file)
@@ -66,7 +66,7 @@ type dirInfo struct {
 func epipecheck(file *File, e error) {
 }
 
-// DevNull is the name of the operating system's ``null device.''
+// DevNull is the name of the operating system's “null device.”
 // On Unix-like systems, it is "/dev/null"; on Windows, "NUL".
 const DevNull = "/dev/null"
 
index 666143b0de35c304111b1591c319ec5814463ee6..c30a6890de0f3895341f49273035f28762e90e20 100644 (file)
@@ -196,7 +196,7 @@ func epipecheck(file *File, e error) {
        }
 }
 
-// DevNull is the name of the operating system's ``null device.''
+// DevNull is the name of the operating system's “null device.”
 // On Unix-like systems, it is "/dev/null"; on Windows, "NUL".
 const DevNull = "/dev/null"
 
index 75b4707eaf7ff1a12d9e064f19ac2bd09f77b0a1..ab5d6a493de902ae3c2fc477ca859efcaf23ae84 100644 (file)
@@ -95,7 +95,7 @@ type dirInfo struct {
 func epipecheck(file *File, e error) {
 }
 
-// DevNull is the name of the operating system's ``null device.''
+// DevNull is the name of the operating system's “null device.”
 // On Unix-like systems, it is "/dev/null"; on Windows, "NUL".
 const DevNull = "NUL"
 
index 0554deb2ffe72fcc3d6e315cca205812f0657a10..668b87bb24b34f7a1307eda3b25ddcbc57ef2e90 100644 (file)
@@ -83,8 +83,8 @@ const (
 // If the result of this process is an empty string, Clean
 // returns the string ".".
 //
-// See also Rob Pike, ``Lexical File Names in Plan 9 or
-// Getting Dot-Dot Right,''
+// See also Rob Pike, Lexical File Names in Plan 9 or
+// Getting Dot-Dot Right,
 // https://9p.io/sys/doc/lexnames.html
 func Clean(path string) string {
        originalPath := path
index f1f3499f63e00cc524ff11fec6cc148176a341d4..5c5bc445ac0802862d38af0e3d1c4605ad2ec744 100644 (file)
@@ -64,8 +64,8 @@ func (b *lazybuf) string() string {
 // If the result of this process is an empty string, Clean
 // returns the string ".".
 //
-// See also Rob Pike, ``Lexical File Names in Plan 9 or
-// Getting Dot-Dot Right,''
+// See also Rob Pike, Lexical File Names in Plan 9 or
+// Getting Dot-Dot Right,
 // https://9p.io/sys/doc/lexnames.html
 func Clean(path string) string {
        if path == "" {
index eaab1012215379641b20233c77f3a3c058e3813d..50b436e5f6ec4548e78b27031075591996591d07 100644 (file)
@@ -174,7 +174,7 @@ func deepValueEqual(v1, v2 Value, visited map[visit]bool) bool {
        }
 }
 
-// DeepEqual reports whether x and y are ``deeply equal,'' defined as follows.
+// DeepEqual reports whether x and y are “deeply equal,” defined as follows.
 // Two values of identical type are deeply equal if one of the following cases applies.
 // Values of distinct types are never deeply equal.
 //
index a6e833050bb46a936674b49af656facd4cb79ccc..1694230345177cb3c23b7d7d10b1875cf23e7b96 100644 (file)
@@ -52,8 +52,8 @@ import (
 // submatch indices. An unmatched subexpression formats
 // its pair as a single - (not illustrated above).  For now
 // each regexp run produces two match results, one for a
-// ``full match'' that restricts the regexp to matching the entire
-// string or nothing, and one for a ``partial match'' that gives
+// “full match” that restricts the regexp to matching the entire
+// string or nothing, and one for a “partial match” that gives
 // the leftmost first match found in the string.
 //
 // Lines beginning with # are comments. Lines beginning with
index 8583f55e5421d88789cb7e036695d5244ec7a87b..ee71decb35f82894fe3cd2be0a59983bbe4d7108 100644 (file)
@@ -102,7 +102,7 @@ func EmptyOpContext(r1, r2 rune) EmptyOp {
        return op
 }
 
-// IsWordChar reports whether r is consider a ``word character''
+// IsWordChar reports whether r is consider a “word character”
 // during the evaluation of the \b and \B zero-width assertions.
 // These assertions are ASCII-only: the word characters are [A-Za-z0-9_].
 func IsWordChar(r rune) bool {
index 459e58dd7ef0af0e475aa456906dd7ffd72fac10..7aef78a2ecc73cac07f62fd2c62631d14e62a06e 100644 (file)
@@ -8,7 +8,7 @@ import "unsafe"
 
 var inf = float64frombits(0x7FF0000000000000)
 
-// isNaN reports whether f is an IEEE 754 ``not-a-number'' value.
+// isNaN reports whether f is an IEEE 754 “not-a-number” value.
 func isNaN(f float64) (is bool) {
        // IEEE 754 says that only NaNs satisfy f != f.
        return f != f
index babf865aeb086bafbe85eecefd290db1ecf1acc6..dcfeca8783cb28307a2951d331b0dad41720382f 100644 (file)
@@ -6,7 +6,7 @@ package time
 
 import "errors"
 
-// A Ticker holds a channel that delivers ``ticks'' of a clock
+// A Ticker holds a channel that delivers “ticks” of a clock
 // at intervals.
 type Ticker struct {
        C <-chan Time // The channel on which the ticks are delivered.