diff options
-rw-r--r-- | changelog.md | 12 | ||||
-rw-r--r-- | lib/pure/unicode.nim | 5 |
2 files changed, 12 insertions, 5 deletions
diff --git a/changelog.md b/changelog.md index 749959e3c..61e6711db 100644 --- a/changelog.md +++ b/changelog.md @@ -19,6 +19,18 @@ ### Breaking changes in the standard library +- We removed `unicode.Rune16` without any deprecation period as the name + was wrong (see the [RFC](https://github.com/nim-lang/RFCs/issues/151) for details) + and we didn't find any usages of it in the wild. If you still need it, add this + piece of code to your project: + +```nim + +type + Rune16* = distinct int16 + +``` + ### Breaking changes in the compiler diff --git a/lib/pure/unicode.nim b/lib/pure/unicode.nim index 33b720f62..30d805334 100644 --- a/lib/pure/unicode.nim +++ b/lib/pure/unicode.nim @@ -31,11 +31,6 @@ type ## Type that can hold a single Unicode code point. ## ## A Rune may be composed with other Runes to a character on the screen. - Rune16* = distinct int16 ## \ - ## Type that can hold a single UTF-16 encoded character. - ## - ## A single Rune16 may not be enough to hold an arbitrary Unicode code point. - template ones(n: untyped): untyped = ((1 shl n)-1) |