Fix wrong order of range in comment

pull/112/head
Andre Richter 3 years ago
parent 29a58d7d51
commit 07fb63ae5f
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

@ -2862,7 +2862,7 @@ diff -uNr 13_exceptions_part2_peripheral_IRQs/src/memory/mmu.rs 14_virtual_mem_p
+pub trait AssociatedTranslationTable { +pub trait AssociatedTranslationTable {
+ /// A translation table whose address range is: + /// A translation table whose address range is:
+ /// + ///
+ /// [0, AS_SIZE - 1] + /// [AS_SIZE - 1, 0]
+ type TableStartFromBottom; + type TableStartFromBottom;
} }

@ -64,7 +64,7 @@ pub struct AddressSpace<const AS_SIZE: usize>;
pub trait AssociatedTranslationTable { pub trait AssociatedTranslationTable {
/// A translation table whose address range is: /// A translation table whose address range is:
/// ///
/// [0, AS_SIZE - 1] /// [AS_SIZE - 1, 0]
type TableStartFromBottom; type TableStartFromBottom;
} }

@ -80,7 +80,7 @@ pub struct AddressSpace<const AS_SIZE: usize>;
pub trait AssociatedTranslationTable { pub trait AssociatedTranslationTable {
/// A translation table whose address range is: /// A translation table whose address range is:
/// ///
/// [0, AS_SIZE - 1] /// [AS_SIZE - 1, 0]
type TableStartFromBottom; type TableStartFromBottom;
} }

@ -37,7 +37,7 @@ pub trait AssociatedTranslationTable {
/// A translation table whose address range is: /// A translation table whose address range is:
/// ///
/// [0, AS_SIZE - 1] /// [AS_SIZE - 1, 0]
type TableStartFromBottom; type TableStartFromBottom;
} }
``` ```
@ -602,7 +602,7 @@ diff -uNr 15_virtual_mem_part3_precomputed_tables/src/memory/mmu.rs 16_virtual_m
+ +
+ /// A translation table whose address range is: + /// A translation table whose address range is:
+ /// + ///
/// [0, AS_SIZE - 1] /// [AS_SIZE - 1, 0]
type TableStartFromBottom; type TableStartFromBottom;
} }

@ -85,7 +85,7 @@ pub trait AssociatedTranslationTable {
/// A translation table whose address range is: /// A translation table whose address range is:
/// ///
/// [0, AS_SIZE - 1] /// [AS_SIZE - 1, 0]
type TableStartFromBottom; type TableStartFromBottom;
} }

Loading…
Cancel
Save