replace doAssert false with raiseAssert in lib, which works better with strictdefs (#22458)

This commit is contained in:
ringabout
2023-08-12 00:24:46 +08:00
committed by GitHub
parent 48da472dd2
commit 3f7e1d7daa
22 changed files with 34 additions and 34 deletions

View File

@@ -1175,7 +1175,7 @@ proc renderRstToOut(d: PDoc, n: PRstNode, result: var string) =
renderAux(d, n, "<div class=\"option-list-description\">$1</div>",
" $1\n", result)
of rnOption, rnOptionString, rnOptionArgument:
doAssert false, "renderRstToOut"
raiseAssert "renderRstToOut"
of rnLiteralBlock:
renderAux(d, n, "<pre$2>$1</pre>\n",
"\n\n$2\\begin{rstpre}\n$1\n\\end{rstpre}\n\n", result)