summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDanil Yarantsev <tiberiumk12@gmail.com>2021-02-23 10:59:13 +0300
committerGitHub <noreply@github.com>2021-02-23 08:59:13 +0100
commit4e619a6bea75829638a87d53b1d806aface322e7 (patch)
tree9dc1e0d9913cf190706bc40c330ee9fa0e72b67b
parentce7caec4b3beab913d801e6be7f0bed0728c791c (diff)
downloadNim-4e619a6bea75829638a87d53b1d806aface322e7.tar.gz
A few rst doc fixes (#17151)
* Fix a couple of rst formatting issues

* no need for the extra space
-rw-r--r--lib/pure/strutils.nim2
-rw-r--r--lib/system/memalloc.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 5d04b5300..da1a0a59b 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -2205,7 +2205,7 @@ func escape*(s: string, prefix = "\"", suffix = "\""): string {.rtl,
   ##
   ## See also:
   ## * `unescape func<#unescape,string,string,string>`_ for the opposite
-  ## operation
+  ##   operation
   result = newStringOfCap(s.len + s.len shr 2)
   result.add(prefix)
   for c in items(s):
diff --git a/lib/system/memalloc.nim b/lib/system/memalloc.nim
index ffb5190ca..fca1db91d 100644
--- a/lib/system/memalloc.nim
+++ b/lib/system/memalloc.nim
@@ -213,7 +213,7 @@ when hasAlloc and not defined(js):
     ## to it is undefined behaviour!
     ##
     ## See also:
-    ## `allocShared0 <#allocShared0.t,Natural>`_.
+    ## * `allocShared0 <#allocShared0.t,Natural>`_.
     incStat(allocCount)
     allocSharedImpl(size)