summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorNindaleth <Nindaleth@users.noreply.github.com>2019-10-08 21:24:34 +0200
committerVarriount <Varriount@users.noreply.github.com>2019-10-08 15:24:34 -0400
commit84c956d9dadfac0fa149dbc1eb7adef6888c95dc (patch)
treeafeb19d135e37f5928203a90026e951b1b136089 /lib
parentf30da2f26628d58274363b527e7099bdd44f707d (diff)
downloadNim-84c956d9dadfac0fa149dbc1eb7adef6888c95dc.tar.gz
fix a few dead links and a missing sentence in documentation (#12387)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/strscans.nim2
-rw-r--r--lib/system/io.nim6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/strscans.nim b/lib/pure/strscans.nim
index e517d8c78..0125a1926 100644
--- a/lib/pure/strscans.nim
+++ b/lib/pure/strscans.nim
@@ -76,7 +76,7 @@ One very nice advantage over regular expressions is that ``scanf`` is
 extensible with ordinary Nim procs. The proc is either enclosed in ``${}``
 or in ``$[]``. ``${}`` matches and binds the result
 to a variable (that was passed to the ``scanf`` macro) while ``$[]`` merely
-optional tokens.
+matches optional tokens without any result binding.
 
 
 In this example, we define a helper proc ``someSep`` that skips some separators
diff --git a/lib/system/io.nim b/lib/system/io.nim
index 888ff8e7f..89ceb4ea2 100644
--- a/lib/system/io.nim
+++ b/lib/system/io.nim
@@ -667,10 +667,10 @@ when defined(windows) and appType == "console" and
 
 proc readFile*(filename: string): TaintedString {.tags: [ReadIOEffect], benign.} =
   ## Opens a file named `filename` for reading, calls `readAll
-  ## <#readAll>`_ and closes the file afterwards. Returns the string.
-  ## Raises an IO exception in case of an error. If # you need to call
+  ## <#readAll,File>`_ and closes the file afterwards. Returns the string.
+  ## Raises an IO exception in case of an error. If you need to call
   ## this inside a compile time macro you can use `staticRead
-  ## <#staticRead>`_.
+  ## <system.html#staticRead,string>`_.
   var f: File
   if open(f, filename):
     try: