Skip to content

Commit c09d05f

Browse files
committed
chore: add same docs in from_hex function in field/element.rs
1 parent 1c873b5 commit c09d05f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

math/src/field/element.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,8 @@ impl<F: IsPrimeField> FieldElement<F> {
509509
/// Creates a `FieldElement` from a hexstring. It can contain `0x` or not.
510510
/// Returns an `CreationError::InvalidHexString`if the value is not a hexstring.
511511
/// Returns a `CreationError::EmptyString` if the input string is empty.
512+
/// Returns a `CreationError::HexStringIsTooBig` if the the imput hex string is bigger
513+
/// than the maximum amount of characters for this element.
512514
pub fn from_hex(hex_string: &str) -> Result<Self, CreationError> {
513515
if hex_string.is_empty() {
514516
return Err(CreationError::EmptyString);

0 commit comments

Comments
 (0)