We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e762069 commit 5ac508eCopy full SHA for 5ac508e
felt/src/lib.rs
@@ -63,10 +63,10 @@ pub(crate) trait FeltOps {
63
/// # use num_bigint::BigInt;
64
/// # use num_traits::Bounded;
65
/// let positive = Felt252::new(5);
66
- /// assert_eq!(positive.to_bigint(), Into::<num_bigint::BigInt>::into(5));
+ /// assert_eq!(positive.to_signed_felt(), Into::<num_bigint::BigInt>::into(5));
67
///
68
/// let negative = Felt252::max_value();
69
- /// assert_eq!(negative.to_bigint(), Into::<num_bigint::BigInt>::into(-1));
+ /// assert_eq!(negative.to_signed_felt(), Into::<num_bigint::BigInt>::into(-1));
70
/// ```
71
fn to_signed_felt(&self) -> BigInt;
72
0 commit comments