mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 15:31:28 +00:00
std/encodings: Fix open() documentation in regard to exception raised (#21187)
This commit is contained in:
@@ -339,7 +339,7 @@ proc getCurrentEncoding*(uiApp = false): string =
|
||||
|
||||
proc open*(destEncoding = "UTF-8", srcEncoding = "CP1252"): EncodingConverter =
|
||||
## Opens a converter that can convert from `srcEncoding` to `destEncoding`.
|
||||
## Raises `IOError` if it cannot fulfill the request.
|
||||
## Raises `EncodingError` if it cannot fulfill the request.
|
||||
when not defined(windows):
|
||||
result = iconvOpen(destEncoding, srcEncoding)
|
||||
if result == nil:
|
||||
|
||||
Reference in New Issue
Block a user