Change stdlib imports to use std prefix in most examples (#17202)
This commit is contained in:
parent
26a6ceb34e
commit
56461c280f
45 changed files with 127 additions and 127 deletions
|
|
@ -1089,7 +1089,7 @@ template onSignal*(signals: varargs[cint], body: untyped) =
|
|||
## Example:
|
||||
##
|
||||
## .. code-block::
|
||||
## from posix import SIGINT, SIGTERM, onSignal
|
||||
## from std/posix import SIGINT, SIGTERM, onSignal
|
||||
## onSignal(SIGINT, SIGTERM):
|
||||
## echo "bye from signal ", sig
|
||||
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ proc osReleaseFile*(): Config {.since: (1, 5).} =
|
|||
## `os-release` file is not available on Windows and OS X by design.
|
||||
## * https://www.freedesktop.org/software/systemd/man/os-release.html
|
||||
runnableExamples:
|
||||
import parsecfg
|
||||
import std/parsecfg
|
||||
when defined(linux):
|
||||
let data = osReleaseFile()
|
||||
echo "OS name: ", data.getSectionValue("", "NAME") ## the data is up to each distro.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue