summary refs log tree commit diff stats
path: root/lib/impure
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-08-27 11:25:20 +0200
committerGitHub <noreply@github.com>2020-08-27 11:25:20 +0200
commitccccd30cf6b8704c224e42001d0def2b566d5388 (patch)
tree5236636a00cdd2607e1153bcbe9d5d28b0bf67f2 /lib/impure
parenta9a9860b0b5171487fae100010a18ad71f5d5f6d (diff)
downloadNim-ccccd30cf6b8704c224e42001d0def2b566d5388.tar.gz
fixes #15221 (#15230)
Diffstat (limited to 'lib/impure')
-rw-r--r--lib/impure/nre.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/impure/nre.nim b/lib/impure/nre.nim
index 88fa0b323..71936bd5f 100644
--- a/lib/impure/nre.nim
+++ b/lib/impure/nre.nim
@@ -367,7 +367,7 @@ func contains*(pattern: CaptureBounds, name: string): bool =
 func contains*(pattern: Captures, name: string): bool =
   name in CaptureBounds(pattern)
 
-func checkNamedCaptured(pattern: RegexMatch, name: string): void =
+func checkNamedCaptured(pattern: RegexMatch, name: string) =
   if not (name in pattern.captureBounds):
     raise newException(KeyError, "Group '" & name & "' was not captured")