From e7f280bd26a54b4f187b087c8d35f43f0e6328c7 Mon Sep 17 00:00:00 2001 From: Miran Date: Wed, 17 Jun 2020 15:25:02 +0200 Subject: 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 --- doc/backends.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') 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``. -- cgit 1.4.1-2-gfad0 mit' value='switch'/> This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/tests/modules/mrecmod2.nim
blob: 31fac6e4dee5c43c6339b0c8f442ac8ecbe6d2fb (plain) (tree)
1
2
3
4
5
6
7
8
9