1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-15 13:50:27 +02:00

Expand "iff" to "if and only if" in pl031.rs (#1052)

* Expand "if" to "if and only if" in pl031.rs

Similar to #1051.
This commit is contained in:
Martin Geisler
2023-08-04 12:04:02 +02:00
committed by GitHub
parent 5c42b6c816
commit c7240f604f

View File

@ -86,8 +86,8 @@ impl Rtc {
/// Returns whether there is currently an interrupt pending. /// Returns whether there is currently an interrupt pending.
/// ///
/// This should be true iff `matched` returns true and the interrupt is /// This should be true if and only if `matched` returns true and the
/// masked. /// interrupt is masked.
pub fn interrupt_pending(&self) -> bool { pub fn interrupt_pending(&self) -> bool {
// Safe because we know that self.registers points to the control // Safe because we know that self.registers points to the control
// registers of a PL031 device which is appropriately mapped. // registers of a PL031 device which is appropriately mapped.