summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-12-23 23:50:07 +0800
committerGitHub <noreply@github.com>2022-12-23 10:50:07 -0500
commitac5a36c0a4be3de6565f2a071c04d1fd8f1b67da (patch)
treee8b2969651098936ef68028f065b53a529c932ce
parent0ffc322cf615685ae4d528e26ddd13f6ea072684 (diff)
downloadNim-ac5a36c0a4be3de6565f2a071c04d1fd8f1b67da.tar.gz
re and nre now link to regex and tinyre (#21161)
-rw-r--r--lib/impure/nre.nim8
-rw-r--r--lib/impure/re.nim4
2 files changed, 9 insertions, 3 deletions
diff --git a/lib/impure/nre.nim b/lib/impure/nre.nim
index e9dd49df0..2c1b1deae 100644
--- a/lib/impure/nre.nim
+++ b/lib/impure/nre.nim
@@ -20,15 +20,17 @@ when defined(js):
 ## search the internet for a wide variety of third-party documentation and
 ## tools.
 ##
-## **Note**: If you love `sequtils.toSeq` we have bad news for you. This
-## library doesn't work with it due to documented compiler limitations. As
-## a workaround, use this:
+## .. warning:: If you love `sequtils.toSeq` we have bad news for you. This
+##   library doesn't work with it due to documented compiler limitations. As
+##   a workaround, use this:
 runnableExamples:
   # either `import std/nre except toSeq` or fully qualify `sequtils.toSeq`:
   import std/sequtils
   iterator iota(n: int): int =
     for i in 0..<n: yield i
   assert sequtils.toSeq(iota(3)) == @[0, 1, 2]
+## .. note:: There are also alternative nimble packages such as [tinyre](https://github.com/khchen/tinyre)
+##   and [regex](https://github.com/nitely/nim-regex).
 ## Licencing
 ## ---------
 ##
diff --git a/lib/impure/re.nim b/lib/impure/re.nim
index c647b9442..f125f9bcd 100644
--- a/lib/impure/re.nim
+++ b/lib/impure/re.nim
@@ -17,6 +17,10 @@ when defined(js):
 ## C library. This means that your application will depend on the PCRE
 ## library's licence when using this module, which should not be a problem
 ## though.
+##
+## .. note:: There are also alternative nimble packages such as [tinyre](https://github.com/khchen/tinyre)
+##   and [regex](https://github.com/nitely/nim-regex).
+##
 ## PCRE's licence follows:
 ##
 ## .. include:: ../../doc/regexprs.txt