fixed some spellings

This commit is contained in:
Keshav Bohra
2021-10-05 12:49:23 +05:30
parent 199d2637cc
commit 1589263947
41 changed files with 80 additions and 80 deletions

View File

@ -9,11 +9,11 @@
const CHAR_SIZE = 8
/**
* Adds padding to binary/hex string represention
* Adds padding to binary/hex string representation
*
* @param {string} str - string represention (binary/hex)
* @param {string} str - string representation (binary/hex)
* @param {int} bits - total number of bits wanted
* @return {string} - string represention padding with empty (0) bits
* @return {string} - string representation padding with empty (0) bits
*
* @example
* pad("10011", 8); // "00010011"

View File

@ -20,11 +20,11 @@ const K = [
]
/**
* Adds padding to binary/hex string represention
* Adds padding to binary/hex string representation
*
* @param {string} str - string represention (binary/hex)
* @param {string} str - string representation (binary/hex)
* @param {int} bits - total number of bits wanted
* @return {string} - string represention padding with empty (0) bits
* @return {string} - string representation padding with empty (0) bits
*
* @example
* pad("10011", 8); // "00010011"
@ -56,7 +56,7 @@ function chunkify (str, size) {
}
/**
* Rotates string represention of bits to th left
* Rotates string representation of bits to th left
*
* @param {string} bits - string representation of bits
* @param {int} turns - number of rotations to make