summary refs log tree commit diff stats
path: root/doc/manual.rst
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2018-04-29 13:50:21 +0300
committerAndreas Rumpf <rumpf_a@web.de>2018-05-07 09:37:49 +0200
commitae5c946a325c8833472173e63017dbed39f23abe (patch)
tree14922c780706850e7f47c50114dfbe9a7ce6eebb /doc/manual.rst
parentb0d85b0adf950685e2f7d88665a3d5b03cd06cfd (diff)
downloadNim-ae5c946a325c8833472173e63017dbed39f23abe.tar.gz
Support thread-local variables declared inside procs; fixes #7565
Diffstat (limited to 'doc/manual.rst')
-rw-r--r--doc/manual.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index fabcf058a..1a4ed19b7 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -7798,8 +7798,9 @@ Future directions:
 Threadvar pragma
 ----------------
 
-A global variable can be marked with the ``threadvar`` pragma; it is
-a `thread-local`:idx: variable then:
+A variable can be marked with the ``threadvar`` pragma, which makes it a
+`thread-local`:idx: variable; Additionally, this implies all the effects
+of the ``global`` pragma.
 
 .. code-block:: nim
   var checkpoints* {.threadvar.}: seq[string]