Skip to content

Commit

Permalink
doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratyush committed Dec 28, 2023
1 parent fc7dab5 commit 4554458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uint/prim_uint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub trait PrimUInt:
/// ```
/// use ark_r1cs_std::uint::PrimUInt;
///
/// let bytes = ToBytes::to_le_bytes(&0x12345678u32);
/// let bytes = PrimUInt::to_le_bytes(&0x12345678u32);
/// assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]);
/// ```
fn to_le_bytes(&self) -> Self::Bytes;
Expand All @@ -31,7 +31,7 @@ pub trait PrimUInt:
/// ```
/// use ark_r1cs_std::uint::PrimUInt;
///
/// let bytes = ToBytes::to_be_bytes(&0x12345678u32);
/// let bytes = PrimUInt::to_be_bytes(&0x12345678u32);
/// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
/// ```
fn to_be_bytes(&self) -> Self::Bytes;
Expand Down

0 comments on commit 4554458

Please sign in to comment.