Skip to content

Commit 0d55f01

Browse files
committed
make fields public and add documentation
1 parent 3ecd11c commit 0d55f01

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/instructions/tlb.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,13 @@ where
349349
}
350350
}
351351

352+
/// An error returned when trying to use an invalid ASID.
352353
#[derive(Debug)]
353354
pub struct AsidOutOfRangeError {
354-
asid: u16,
355-
nasid: u32,
355+
/// The requested ASID.
356+
pub asid: u16,
357+
/// The number of valid ASIDS.
358+
pub nasid: u32,
356359
}
357360

358361
impl fmt::Display for AsidOutOfRangeError {

0 commit comments

Comments
 (0)