Skip to content

Commit ea37c11

Browse files
committed
updated mddoc
1 parent 7763fc0 commit ea37c11

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

readme.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,25 +120,47 @@ template initBigInt(val: uint): BigInt
120120
proc initBigInt(val: BigInt): BigInt
121121
```
122122

123+
## **const** zero
124+
125+
126+
```nim
127+
zero = ([0'u], {})
128+
```
129+
130+
## **const** one
131+
132+
133+
```nim
134+
one = ([1'u], {})
135+
```
136+
123137
## **proc** cmp
124138

139+
Returns:
140+
* a value less than zero, if <tt class="docutils literal"><span class="pre">a &lt; b</span></tt>
141+
* a value greater than zero, if <tt class="docutils literal"><span class="pre">a > b</span></tt>
142+
* zero, if <tt class="docutils literal"><span class="pre">a == b</span></tt>
125143

126144
```nim
127145
proc cmp(a, b: BigInt): int64
128146
```
129147

130148
## **proc** cmp
131149

150+
Returns:
151+
* a value less than zero, if <tt class="docutils literal"><span class="pre">a &lt; b</span></tt>
152+
* a value greater than zero, if <tt class="docutils literal"><span class="pre">a > b</span></tt>
153+
* zero, if <tt class="docutils literal"><span class="pre">a == b</span></tt>
132154

133155
```nim
134-
proc cmp(a: int32; b: BigInt): int64
156+
proc cmp(a: BigInt; b: int32): int64
135157
```
136158

137159
## **proc** cmp
138160

139161

140162
```nim
141-
proc cmp(a: BigInt; b: int32): int64
163+
proc cmp(a: int32; b: BigInt): int64
142164
```
143165

144166
## **proc** `<`

0 commit comments

Comments
 (0)