diff options
author | Miran <narimiran@disroot.org> | 2020-06-17 15:25:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 15:25:02 +0200 |
commit | e7f280bd26a54b4f187b087c8d35f43f0e6328c7 (patch) | |
tree | 59ceb2dc34d14e8b983722ef9092632737d3a033 /doc | |
parent | 861953429362d72a76fe3768a25db3f8a1cf70ee (diff) | |
download | Nim-e7f280bd26a54b4f187b087c8d35f43f0e6328c7.tar.gz |
Remove deprecated stuff from stdlib (#14699)
* update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
Diffstat (limited to 'doc')
-rw-r--r-- | doc/backends.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/backends.rst b/doc/backends.rst index d34a06238..e46941a12 100644 --- a/doc/backends.rst +++ b/doc/backends.rst @@ -367,7 +367,7 @@ A similar thing happens with C code invoking Nim code which returns a .. code-block:: nim proc gimme(): cstring {.exportc.} = - result = "Hey there C code! " & $random(100) + result = "Hey there C code! " & $rand(100) Since Nim's garbage collector is not aware of the C code, once the ``gimme`` proc has finished it can reclaim the memory of the ``cstring``. |