From afb26c787307777f600b2fc8afe1ed1952264292 Mon Sep 17 00:00:00 2001 From: Coby Date: Tue, 28 Jan 2025 15:59:55 -0500 Subject: [PATCH] bytes -> bits --- src/lib/provable/field.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/provable/field.ts b/src/lib/provable/field.ts index 95592b383..908498ba8 100644 --- a/src/lib/provable/field.ts +++ b/src/lib/provable/field.ts @@ -837,11 +837,11 @@ class Field { * * 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. * - * **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. + * **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. * * @param bits - An array of {@link Bool} or `boolean` type. * - * @return A {@link Field} element matching the [little endian binary representation](https://en.wikipedia.org/wiki/Endianness) of the given `bytes` array. + * @return A {@link Field} element matching the [little endian binary representation](https://en.wikipedia.org/wiki/Endianness) of the given `bits` array. */ static fromBits(bits: (Bool | boolean)[]) { const length = bits.length;