From b8325181d171e30bba0ac394ab095fd3f81584e3 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 25 Sep 2016 08:51:30 +0200 Subject: [PATCH] EIO is called IOError now --- lib/impure/re.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/impure/re.nim b/lib/impure/re.nim index bf397550a1..bd86bcdcf3 100644 --- a/lib/impure/re.nim +++ b/lib/impure/re.nim @@ -359,7 +359,7 @@ proc parallelReplace*(s: string, subs: openArray[ proc transformFile*(infile, outfile: string, subs: openArray[tuple[pattern: Regex, repl: string]]) = ## reads in the file `infile`, performs a parallel replacement (calls - ## `parallelReplace`) and writes back to `outfile`. Raises ``EIO`` if an + ## `parallelReplace`) and writes back to `outfile`. Raises ``IOError`` if an ## error occurs. This is supposed to be used for quick scripting. var x = readFile(infile).string writeFile(outfile, x.parallelReplace(subs))