summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorAntonis Geralis <43617260+planetis-m@users.noreply.github.com>2021-07-10 09:41:07 +0300
committerGitHub <noreply@github.com>2021-07-10 08:41:07 +0200
commit48ef832cf346a3c98dd059ddf77201b3ccb3f59f (patch)
tree9213afb263779f7846a11977975b9f93a7ccfaed /lib/core
parent4ec2f74246158759735149e3dd087f373fd787b2 (diff)
downloadNim-48ef832cf346a3c98dd059ddf77201b3ccb3f59f.tar.gz
sync with the same template from locks module (#18414)
Diffstat (limited to 'lib/core')
-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].}: