]> Cypherpunks repositories - gostls13.git/commitdiff
unicode: use IsSpace not IsUpper in IsSpace example test
authorPedro Lopez Mareque <pedro.lopez.mareque@gmail.com>
Thu, 7 Oct 2021 05:34:47 +0000 (07:34 +0200)
committerIan Lance Taylor <iant@golang.org>
Fri, 8 Oct 2021 00:18:29 +0000 (00:18 +0000)
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>

src/unicode/example_test.go

index 416ad1fe083481ab19892a75c5d3a5d9c10636df..d3a47aca91b7489ff9e27e9ea470dd3d30a356dd 100644 (file)
@@ -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