diff options
| author | Russ Cox <rsc@golang.org> | 2022-02-03 14:05:46 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2022-04-05 17:52:29 +0000 |
| commit | 81431c7aa7c5d782e72dec342442ea7664ef1783 (patch) | |
| tree | 34b0a65bf5ddf8168133801e5ed7ae142b212dbf /src/path | |
| parent | b4cabaf8c094da8387ac6274706fe4850d77ebc6 (diff) | |
| download | go-81431c7aa7c5d782e72dec342442ea7664ef1783.tar.xz | |
all: replace `` and '' with “ (U+201C) and ” (U+201D) in doc comments
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>
Diffstat (limited to 'src/path')
| -rw-r--r-- | src/path/filepath/path.go | 4 | ||||
| -rw-r--r-- | src/path/path.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/path/filepath/path.go b/src/path/filepath/path.go index 0554deb2ff..668b87bb24 100644 --- a/src/path/filepath/path.go +++ b/src/path/filepath/path.go @@ -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 diff --git a/src/path/path.go b/src/path/path.go index f1f3499f63..5c5bc445ac 100644 --- a/src/path/path.go +++ b/src/path/path.go @@ -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 == "" { |
