diff options
Diffstat (limited to 'lib/impure')
-rw-r--r-- | lib/impure/db_mysql.nim | 4 | ||||
-rw-r--r-- | lib/impure/db_odbc.nim | 4 | ||||
-rw-r--r-- | lib/impure/db_postgres.nim | 4 | ||||
-rw-r--r-- | lib/impure/db_sqlite.nim | 6 | ||||
-rw-r--r-- | lib/impure/nre.nim | 2 | ||||
-rw-r--r-- | lib/impure/re.nim | 4 |
6 files changed, 12 insertions, 12 deletions
diff --git a/lib/impure/db_mysql.nim b/lib/impure/db_mysql.nim index fcc29a205..242ea1b0d 100644 --- a/lib/impure/db_mysql.nim +++ b/lib/impure/db_mysql.nim @@ -31,7 +31,7 @@ ## ---------------------------------- ## ## .. code-block:: Nim -## import db_mysql +## import std/db_mysql ## let db = open("localhost", "user", "password", "dbname") ## db.close() ## @@ -56,7 +56,7 @@ ## ## .. code-block:: Nim ## -## import db_mysql, math +## import std/[db_mysql, math] ## ## let theDb = open("localhost", "nim", "nim", "test") ## diff --git a/lib/impure/db_odbc.nim b/lib/impure/db_odbc.nim index d9c8d035a..1e4032b34 100644 --- a/lib/impure/db_odbc.nim +++ b/lib/impure/db_odbc.nim @@ -37,7 +37,7 @@ ## ---------------------------------- ## ## .. code-block:: Nim -## import db_odbc +## import std/db_odbc ## var db = open("localhost", "user", "password", "dbname") ## db.close() ## @@ -62,7 +62,7 @@ ## ## .. code-block:: Nim ## -## import db_odbc, math +## import std/[db_odbc, math] ## ## var theDb = open("localhost", "nim", "nim", "test") ## diff --git a/lib/impure/db_postgres.nim b/lib/impure/db_postgres.nim index aea3ece71..034a94852 100644 --- a/lib/impure/db_postgres.nim +++ b/lib/impure/db_postgres.nim @@ -47,7 +47,7 @@ ## To use Unix sockets with `db_postgres`, change the server address to the socket file path: ## ## .. code-block:: Nim -## import db_postgres ## Change "localhost" or "127.0.0.1" to the socket file path +## import std/db_postgres ## Change "localhost" or "127.0.0.1" to the socket file path ## let db = db_postgres.open("/run/postgresql", "user", "password", "database") ## echo db.getAllRows(sql"SELECT version();") ## db.close() @@ -64,7 +64,7 @@ ## ---------------------------------- ## ## .. code-block:: Nim -## import db_postgres +## import std/db_postgres ## let db = open("localhost", "user", "password", "dbname") ## db.close() ## diff --git a/lib/impure/db_sqlite.nim b/lib/impure/db_sqlite.nim index 73657b510..6ca81db9e 100644 --- a/lib/impure/db_sqlite.nim +++ b/lib/impure/db_sqlite.nim @@ -35,7 +35,7 @@ ## ## .. code-block:: Nim ## -## import db_sqlite +## import std/db_sqlite ## ## # user, password, database name can be empty. ## # These params are not used on db_sqlite module. @@ -66,7 +66,7 @@ ## ## .. code-block:: nim ## -## import db_sqlite, math +## import std/[db_sqlite, math] ## ## let db = open("mytest.db", "", "", "") ## @@ -99,7 +99,7 @@ ## ## .. code-block:: nim ## -## import random +## import std/random ## ## ## Generate random float datas ## var orig = newSeq[float64](150) diff --git a/lib/impure/nre.nim b/lib/impure/nre.nim index a4d0e02ae..7b2d7d3ee 100644 --- a/lib/impure/nre.nim +++ b/lib/impure/nre.nim @@ -26,7 +26,7 @@ when defined(js): ## ## .. code-block:: nim ## -## import nre except toSeq +## import std/nre except toSeq ## ## ## Licencing diff --git a/lib/impure/re.nim b/lib/impure/re.nim index e881e91f6..0c96876b9 100644 --- a/lib/impure/re.nim +++ b/lib/impure/re.nim @@ -274,7 +274,7 @@ proc match*(s: string, pattern: Regex, matches: var openArray[string], ## returned. ## runnableExamples: - import sequtils + import std/sequtils var matches: array[2, string] if match("abcdefg", re"c(d)ef(g)", matches, 2): doAssert toSeq(matches) == @["d", "g"] @@ -494,7 +494,7 @@ iterator split*(s: string, sep: Regex; maxsplit = -1): string = ## Substrings are separated by the regular expression `sep` ## (and the portion matched by `sep` is not returned). runnableExamples: - import sequtils + import std/sequtils doAssert toSeq(split("00232this02939is39an22example111", re"\d+")) == @["", "this", "is", "an", "example", ""] var last = 0 |