diff options
author | Pedro Lopez Mareque <pedro.lopez.mareque@gmail.com> | 2021-10-07 07:34:47 +0200 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-10-08 00:18:29 +0000 |
commit | 7cef83162bbe0008f3e158297b94a7dead64a9b1 (patch) | |
tree | 3701eca32b9b0cf35cd1d2e38792fdff4371b968 /src/unicode | |
parent | 1ceb72394e250d5776726bba63c34cd2be5745d1 (diff) | |
download | go-7cef83162bbe0008f3e158297b94a7dead64a9b1.tar.gz go-7cef83162bbe0008f3e158297b94a7dead64a9b1.zip |
unicode: use IsSpace not IsUpper in IsSpace example test
Change-Id: Ie3017e5507f57cbb2ae9c8b737b378cef91fefeb
Reviewed-on: https://go-review.googlesource.com/c/go/+/354509
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/unicode')
-rw-r--r-- | src/unicode/example_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unicode/example_test.go b/src/unicode/example_test.go index 416ad1fe08..d3a47aca91 100644 --- a/src/unicode/example_test.go +++ b/src/unicode/example_test.go @@ -247,7 +247,7 @@ func ExampleIsSpace() { fmt.Printf("%t\n", unicode.IsSpace(' ')) fmt.Printf("%t\n", unicode.IsSpace('\n')) fmt.Printf("%t\n", unicode.IsSpace('\t')) - fmt.Printf("%t\n", unicode.IsUpper('a')) + fmt.Printf("%t\n", unicode.IsSpace('a')) // Output: // true // true |