diff options
author | Russ Cox <rsc@golang.org> | 2022-02-03 14:12:08 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2022-04-11 16:34:30 +0000 |
commit | 19309779ac5e2f5a2fd3cbb34421dafb2855ac21 (patch) | |
tree | 67dfd3e5d96250325e383183f95b6f5fe1968514 /src/unicode | |
parent | 017933163ab6a2b254f0310c61b57db65cded92e (diff) | |
download | go-19309779ac5e2f5a2fd3cbb34421dafb2855ac21.tar.gz go-19309779ac5e2f5a2fd3cbb34421dafb2855ac21.zip |
all: gofmt main repo
[This CL is part of a sequence implementing the proposal #51082.
The design doc is at https://go.dev/s/godocfmt-design.]
Run the updated gofmt, which reformats doc comments,
on the main repository. Vendored files are excluded.
For #51082.
Change-Id: I7332f099b60f716295fb34719c98c04eb1a85407
Reviewed-on: https://go-review.googlesource.com/c/go/+/384268
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/unicode')
-rw-r--r-- | src/unicode/graphic.go | 2 | ||||
-rw-r--r-- | src/unicode/letter.go | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/unicode/graphic.go b/src/unicode/graphic.go index ca6241949a..2af29778bf 100644 --- a/src/unicode/graphic.go +++ b/src/unicode/graphic.go @@ -120,7 +120,9 @@ func IsPunct(r rune) bool { // IsSpace reports whether the rune is a space character as defined // by Unicode's White Space property; in the Latin-1 space // this is +// // '\t', '\n', '\v', '\f', '\r', ' ', U+0085 (NEL), U+00A0 (NBSP). +// // Other definitions of spacing characters are set by category // Z and property Pattern_White_Space. func IsSpace(r rune) bool { diff --git a/src/unicode/letter.go b/src/unicode/letter.go index f4c950a883..f3f8e52964 100644 --- a/src/unicode/letter.go +++ b/src/unicode/letter.go @@ -49,7 +49,9 @@ type Range32 struct { // means the character is in the corresponding case. There is a special // case representing sequences of alternating corresponding Upper and Lower // pairs. It appears with a fixed Delta of +// // {UpperLower, UpperLower, UpperLower} +// // The constant UpperLower has an otherwise impossible delta value. type CaseRange struct { Lo uint32 @@ -324,6 +326,7 @@ type foldPair struct { // If r is not a valid Unicode code point, SimpleFold(r) returns r. // // For example: +// // SimpleFold('A') = 'a' // SimpleFold('a') = 'A' // |