Skip to content

Commit

Permalink
remove unicode.Rune16 without deprecation period; fixes nim-lang/RFCs…
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored Aug 28, 2019
1 parent 20dec10 commit d4af055
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
12 changes: 12 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions lib/pure/unicode.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d4af055

Please sign in to comment.