Skip to content

Commit 2833d3b

Browse files
Apply suggestion from @romancardenas
Co-authored-by: Román Cárdenas Rodríguez <[email protected]>
1 parent dfee685 commit 2833d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/src/register/mtopi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl Mtopi {
5050
///
5151
/// When this returns true, both `interrupt_id()` and `priority()` will return meaningful values.
5252
#[inline]
53-
pub fn has_interrupt(&self) -> bool {
53+
pub fn is_interrupt_pending(&self) -> bool {
5454
self.iid() != 0
5555
}
5656
}

0 commit comments

Comments
 (0)