Skip to content

Commit afb26c7

Browse files
committed
bytes -> bits
1 parent f8fe27d commit afb26c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/provable/field.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,11 +837,11 @@ class Field {
837837
*
838838
* The method throws if the given bits do not fit in a single Field element. In this case, no more than 254 bits are allowed because some 255 bit integers do not fit into a single Field element.
839839
*
840-
* **Important**: If the given `bytes` array is an array of `booleans` or {@link Bool} elements that all are `constant`, the resulting {@link Field} element will be a constant as well. Or else, if the given array is a mixture of constants and variables of {@link Bool} type, the resulting {@link Field} will be a variable as well.
840+
* **Important**: If the given `bits` array is an array of `booleans` or {@link Bool} elements that all are `constant`, the resulting {@link Field} element will be a constant as well. Or else, if the given array is a mixture of constants and variables of {@link Bool} type, the resulting {@link Field} will be a variable as well.
841841
*
842842
* @param bits - An array of {@link Bool} or `boolean` type.
843843
*
844-
* @return A {@link Field} element matching the [little endian binary representation](https://en.wikipedia.org/wiki/Endianness) of the given `bytes` array.
844+
* @return A {@link Field} element matching the [little endian binary representation](https://en.wikipedia.org/wiki/Endianness) of the given `bits` array.
845845
*/
846846
static fromBits(bits: (Bool | boolean)[]) {
847847
const length = bits.length;

0 commit comments

Comments
 (0)