Skip to content

Commit 5ac508e

Browse files
committed
fix to_signed_felt doc
1 parent e762069 commit 5ac508e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

felt/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ pub(crate) trait FeltOps {
6363
/// # use num_bigint::BigInt;
6464
/// # use num_traits::Bounded;
6565
/// let positive = Felt252::new(5);
66-
/// assert_eq!(positive.to_bigint(), Into::<num_bigint::BigInt>::into(5));
66+
/// assert_eq!(positive.to_signed_felt(), Into::<num_bigint::BigInt>::into(5));
6767
///
6868
/// let negative = Felt252::max_value();
69-
/// assert_eq!(negative.to_bigint(), Into::<num_bigint::BigInt>::into(-1));
69+
/// assert_eq!(negative.to_signed_felt(), Into::<num_bigint::BigInt>::into(-1));
7070
/// ```
7171
fn to_signed_felt(&self) -> BigInt;
7272

0 commit comments

Comments
 (0)