Markdown code blocks migration part 7 (#20547)
This commit is contained in:
parent
13b3ea71da
commit
19ff746916
17 changed files with 426 additions and 411 deletions
|
|
@ -1093,11 +1093,11 @@ template onSignal*(signals: varargs[cint], body: untyped) =
|
|||
## scope.
|
||||
##
|
||||
## Example:
|
||||
##
|
||||
## .. code-block::
|
||||
## ```Nim
|
||||
## from std/posix import SIGINT, SIGTERM, onSignal
|
||||
## onSignal(SIGINT, SIGTERM):
|
||||
## echo "bye from signal ", sig
|
||||
## ```
|
||||
|
||||
for s in signals:
|
||||
handle_signal(s,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue