Skip to content

Commit eb25534

Browse files
authored
Fix docu indentation (#2123)
1 parent 06708fa commit eb25534

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

vm/src/vm/vm_memory/memory.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ pub struct ValidationRule(
3333
/// - BIT62: ACCESS flag, 1 when the cell has been accessed in a way observable to Cairo.
3434
/// - BIT61: RELOCATABLE flag, 1 when the contained value is a `Relocatable`, 0 when it is a
3535
/// `Felt252`.
36-
/// `Felt252` values are stored in big-endian order to keep the flag bits free.
37-
/// `Relocatable` values are stored as native endian, with the 3rd word storing the segment index
38-
/// and the 4th word storing the offset.
36+
///
37+
/// `Felt252` values are stored in big-endian order to keep the flag bits free.
38+
/// `Relocatable` values are stored as native endian, with the 3rd word storing the segment index
39+
/// and the 4th word storing the offset.
3940
#[derive(Copy, Clone, Eq, Ord, PartialEq, PartialOrd, Debug)]
4041
#[repr(align(32))]
4142
pub(crate) struct MemoryCell([u64; 4]);
@@ -520,8 +521,9 @@ impl Memory {
520521
/// - `lhs` exists in memory but `rhs` doesn't -> (Ordering::Greater, 0)
521522
/// - `rhs` exists in memory but `lhs` doesn't -> (Ordering::Less, 0)
522523
/// - None of `lhs` or `rhs` exist in memory -> (Ordering::Equal, 0)
523-
/// Everything else behaves much like `memcmp` in C.
524-
/// This is meant as an optimization for hints to avoid allocations.
524+
///
525+
/// Everything else behaves much like `memcmp` in C.
526+
/// This is meant as an optimization for hints to avoid allocations.
525527
pub(crate) fn memcmp(
526528
&self,
527529
lhs: Relocatable,

0 commit comments

Comments
 (0)