Update docs

This commit is contained in:
2020-07-02 18:11:06 +02:00
parent 2f1f5ed2f8
commit cb5951794d

View File

@@ -120,6 +120,8 @@ function main() {
title="fail(op: OP; msg: string): OP"><wbr />fail<span class="attachedType">OP</span></a></li>
<li><a class="reference" href="#fail%2Cstring"
title="fail[T](msg: string): OP[T]"><wbr />fail<span class="attachedType">OP</span></a></li>
<li><a class="reference" href="#fail%2Ctypedesc%2Cstring"
title="fail(T: typedesc; msg: string): OP[T]"><wbr />fail<span class="attachedType">OP</span></a></li>
</ul>
</li>
@@ -195,6 +197,13 @@ Will create a new operation result with the given error message. The type for th
<span class="Identifier">assert</span> <span class="Identifier">res</span><span class="Other">.</span><span class="Identifier">isOk</span> <span class="Operator">==</span> <span class="Identifier">false</span>
<span class="Identifier">assert</span> <span class="Identifier">res</span><span class="Other">.</span><span class="Identifier">error</span> <span class="Operator">==</span> <span class="StringLit">&quot;Something is wrong!&quot;</span></pre>
</dd>
<a id="fail,typedesc,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#fail%2Ctypedesc%2Cstring"><span class="Identifier">fail</span></a><span class="Other">(</span><span class="Identifier">T</span><span class="Other">:</span> <span class="Identifier">typedesc</span><span class="Other">;</span> <span class="Identifier">msg</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <a href="op.html#OP"><span class="Identifier">OP</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span></pre></dt>
<dd>
Alias for <a class="reference external" href="#fail,string">fail[T](string) proc</a>
</dd>
</dl></div>
@@ -206,7 +215,7 @@ Will create a new operation result with the given error message. The type for th
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2020-07-01 21:23:47 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2020-07-02 16:10:27 UTC</small>
</div>
</div>
</div>