]> Cypherpunks repositories - gostls13.git/commit
unicode/utf8: document the handling of runes out of range in EncodeRune
authorAinar Garipov <gugl.zadolbal@gmail.com>
Fri, 18 Sep 2020 18:01:34 +0000 (21:01 +0300)
committerGiovanni Bajo <rasky@develer.com>
Sat, 19 Sep 2020 09:43:15 +0000 (09:43 +0000)
commita3868028ac8470d1ab7782614707bb90925e7fe3
tree0c60e5a56cb1dea8719e14e7f50e7a0573193c57
parent73eb24ccb6d8dd2cf9dd807acf69987a05e8d142
unicode/utf8: document the handling of runes out of range in EncodeRune

Document the way EncodeRune currently handles runes which are
out of range.  Also add an example showing that behaviour.

Change-Id: I0f8e7645ae053474ec319085a2bb6d7f73bc137c
Reviewed-on: https://go-review.googlesource.com/c/go/+/255998
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Giovanni Bajo <rasky@develer.com>
Trust: Giovanni Bajo <rasky@develer.com>
Run-TryBot: Giovanni Bajo <rasky@develer.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/unicode/utf8/example_test.go
src/unicode/utf8/utf8.go