]> Cypherpunks repositories - gostls13.git/commit
unicode/utf8: minor code simplification
authorRui Ueyama <ruiu@google.com>
Sun, 23 Mar 2014 22:44:29 +0000 (15:44 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 23 Mar 2014 22:44:29 +0000 (15:44 -0700)
commit446d90d727b1820f8f4ef2f4e22d6ce1cd88df4d
treeefe3c6d32c744b8a1ed28ad8da8dcaf4c4e275e0
parent160649ff9adaffddf91c45da2767f3fdc99f6d73
unicode/utf8: minor code simplification

It's a little bit waste to check if r is not a surrogate
code point because RuneError is not a surrogate code point.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/79230043
src/pkg/unicode/utf8/utf8.go