summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAmjad Ben Hedhili <amjadhedhili@outlook.com>2023-08-19 14:14:56 +0100
committerGitHub <noreply@github.com>2023-08-19 15:14:56 +0200
commitd77ada5bdfe1a0778e37604078a38178fe6045f4 (patch)
tree9b960ef2bc266f5d040ab547e446e9769e8f0507 /compiler
parent6eb722c47d7010e83ab953a7f3a9ef5d1e624c56 (diff)
downloadNim-d77ada5bdfe1a0778e37604078a38178fe6045f4.tar.gz
Markdown code blocks migration part 9 (#22506)
* Markdown code blocks migration part 9

* fix [skip ci]
Diffstat (limited to 'compiler')
-rw-r--r--compiler/astalgo.nim2
-rw-r--r--compiler/sigmatch.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim
index 621bd2380..1873d231f 100644
--- a/compiler/astalgo.nim
+++ b/compiler/astalgo.nim
@@ -227,7 +227,7 @@ proc getNamedParamFromList*(list: PNode, ident: PIdent): PSym =
   ## Named parameters are special because a named parameter can be
   ## gensym'ed and then they have '\`<number>' suffix that we need to
   ## ignore, see compiler / evaltempl.nim, snippet:
-  ##   ```
+  ##   ```nim
   ##   result.add newIdentNode(getIdent(c.ic, x.name.s & "\`gensym" & $x.id),
   ##            if c.instLines: actual.info else: templ.info)
   ##   ```
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 048b74547..7780e53f5 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -576,7 +576,7 @@ proc inconsistentVarTypes(f, a: PType): bool {.inline.} =
 
 proc procParamTypeRel(c: var TCandidate, f, a: PType): TTypeRelation =
   ## For example we have:
-  ##   ```
+  ##   ```nim
   ##   proc myMap[T,S](sIn: seq[T], f: proc(x: T): S): seq[S] = ...
   ##   proc innerProc[Q,W](q: Q): W = ...
   ##   ```