summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorJjp137 <Jjp137@users.noreply.github.com>2019-10-17 14:45:23 -0700
committerJjp137 <Jjp137@users.noreply.github.com>2019-10-22 17:59:12 -0700
commit93461aee34244a6c004a5572f31a50ff4fad280d (patch)
tree70e4824a3200d3da50ad567e83453ea1e65aef3c /lib/system
parent6bfa4eb6c51106d9720a61267d47a5e60e3c3d2f (diff)
downloadNim-93461aee34244a6c004a5572f31a50ff4fad280d.tar.gz
Fix many broken links
Note that contrary to what docgen.rst currently says, the ids have
to match exactly or else most web browsers will not jump to the
intended symbol.
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/assertions.nim2
-rw-r--r--lib/system/nimscript.nim6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/system/assertions.nim b/lib/system/assertions.nim
index 2131394e0..e0110d5c0 100644
--- a/lib/system/assertions.nim
+++ b/lib/system/assertions.nim
@@ -45,7 +45,7 @@ template assert*(cond: untyped, msg = "") =
   ##
   ## The compiler may not generate any code at all for ``assert`` if it is
   ## advised to do so through the ``-d:release`` or ``--assertions:off``
-  ## `command line switches <nimc.html#command-line-switches>`_.
+  ## `command line switches <nimc.html#compiler-usage-command-line-switches>`_.
   const expr = astToStr(cond)
   assertImpl(cond, msg, expr, compileOption("assertions"))
 
diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim
index 6f795d075..7a1a45b1a 100644
--- a/lib/system/nimscript.nim
+++ b/lib/system/nimscript.nim
@@ -312,8 +312,8 @@ proc cd*(dir: string) {.raises: [OSError].} =
   ##
   ## The change is permanent for the rest of the execution, since this is just
   ## a shortcut for `os.setCurrentDir()
-  ## <http://nim-lang.org/docs/os.html#setCurrentDir,string>`_ . Use the `withDir()
-  ## <#withDir>`_ template if you want to perform a temporary change only.
+  ## <os.html#setCurrentDir,string>`_ . Use the `withDir()
+  ## <#withDir.t,string,untyped>`_ template if you want to perform a temporary change only.
   setCurrentDir(dir)
   checkOsError()
 
@@ -326,7 +326,7 @@ proc findExe*(bin: string): string =
 template withDir*(dir: string; body: untyped): untyped =
   ## Changes the current directory temporarily.
   ##
-  ## If you need a permanent change, use the `cd() <#cd>`_ proc. Usage example:
+  ## If you need a permanent change, use the `cd() <#cd,string>`_ proc. Usage example:
   ##
   ## .. code-block:: nim
   ##   withDir "foo":