Corrected example shown in documentation (#11654) [ci skip]
Used template within example was added to imports.
This commit is contained in:
parent
dad3c40f55
commit
0a501932c2
1 changed files with 1 additions and 1 deletions
|
|
@ -1040,7 +1040,7 @@ template onSignal*(signals: varargs[cint], body: untyped) =
|
|||
## Example:
|
||||
##
|
||||
## .. code-block::
|
||||
## from posix import SIGINT, SIGTERM
|
||||
## from posix import SIGINT, SIGTERM, onSignal
|
||||
## onSignal(SIGINT, SIGTERM):
|
||||
## echo "bye from signal ", sig
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue