Change stdlib imports to use std prefix in most examples (#17202)

This commit is contained in:
Danil Yarantsev 2021-03-01 00:17:19 +03:00 • committed by GitHub
commit 56461c280f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 127 additions and 127 deletions

View file

@ -5941,7 +5941,7 @@ imported:
:test: "nim c $1"
:status: 1
import strutils except `%`, toUpperAscii
import std/strutils except `%`, toUpperAscii
# doesn't work then:
echo "$1" % "abc".toUpperAscii
@ -5984,7 +5984,7 @@ Module names in imports
A module alias can be introduced via the ``as`` keyword:
.. code-block:: nim
import strutils as su, sequtils as qu
import std/strutils as su, std/sequtils as qu
echo su.format("$1", "lalelu")
@ -6048,7 +6048,7 @@ full qualification:
.. code-block:: nim
:test: "nim c $1"
from strutils import `%`
from std/strutils import `%`
echo "$1" % "abc"
# always possible: full qualification: