mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
Corrected example shown in documentation (#11654) [ci skip]
Used template within example was added to imports.
(cherry picked from commit 0a501932c2)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user