Skip to content

Commit b1c36a8

Browse files
committed
Minor typo fix.
1 parent 97e4f5f commit b1c36a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/algorithms/math/bits/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,12 @@ Number: 9 = (10 - 1) = 0b01001
226226

227227
> See [isPowerOfTwo.js](isPowerOfTwo.js) for further details.
228228
229-
230229
#### Full Adder
231230

232231
This method adds up two integer numbers using bitwise operators.
233232

234233
It implements [full adder](https://en.wikipedia.org/wiki/Adder_(electronics))
235-
electronics circut logic to sum two 32-bit integers in two's complement format.
234+
electronics circuit logic to sum two 32-bit integers in two's complement format.
236235
It's using the boolean logic to cover all possible cases of adding two input bits:
237236
with and without a "carry bit" from adding the previous less-significant stage.
238237

@@ -245,7 +244,8 @@ Legend:
245244
- `carryOut`: a bit to carry to the next most-significant stage
246245
- `bitSum`: The sum of `ai`, `bi`, and `carryIn`
247246
- `resultBin`: The full result of adding current stage with all less-significant stages (in binary)
248-
- `resultBin`: The full result of adding current stage with all less-significant stages (in decimal)
247+
- `resultDec`: The full result of adding current stage with all less-significant stages (in decimal)
248+
249249
```
250250
A = 3: 011
251251
B = 6: 110
@@ -260,7 +260,7 @@ B = 6: 110
260260
```
261261

262262
> See [fullAdder.js](fullAdder.js) for further details.
263-
> See [Full Adder on YouTube](https://www.youtube.com/watch?v=wvJc9CZcvBc).
263+
> See [Full Adder on YouTube](https://www.youtube.com/watch?v=wvJc9CZcvBc&list=PLLXdhg_r2hKA7DPDsunoDZ-Z769jWn4R8).
264264
265265
## References
266266

0 commit comments

Comments
 (0)