summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/core/rlocks.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/rlocks.nim b/lib/core/rlocks.nim
index a1ee0a6ec..0444b9a83 100644
--- a/lib/core/rlocks.nim
+++ b/lib/core/rlocks.nim
@@ -48,7 +48,7 @@ proc release*(lock: var RLock) {.inline.} =
   ## Releases the given lock.
   releaseSys(lock)
 
-template withRLock*(lock: var RLock, code: untyped): untyped =
+template withRLock*(lock: RLock, code: untyped) =
   ## Acquires the given lock and then executes the code.
   acquire(lock)
   {.locks: [lock].}: