aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Daniel Egger <daniel@eggers-club.de> 2020-07-09 00:34:10 +0200
committerGravatar Daniel Egger <daniel@eggers-club.de> 2020-07-09 00:34:10 +0200
commit13d9b2f1da30b89f4746b689ad976d773d4f387a (patch)
treedd73ba692dc864bfed557a4da41f64697dd20113
parentdc7e636bbaa0912ac97d0bceac27f0d7675e7023 (diff)
downloadcortex-m-13d9b2f1da30b89f4746b689ad976d773d4f387a.tar.gz
cortex-m-13d9b2f1da30b89f4746b689ad976d773d4f387a.tar.zst
cortex-m-13d9b2f1da30b89f4746b689ad976d773d4f387a.zip
Expand iff and reword last sentence
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
-rw-r--r--src/asm.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asm.rs b/src/asm.rs
index fb77210..39cd8ef 100644
--- a/src/asm.rs
+++ b/src/asm.rs
@@ -31,8 +31,8 @@ pub fn bkpt() {
///
/// NOTE that the delay can take much longer if interrupts are serviced during its execution
/// and the execution time may vary with other factors. This delay is mainly useful for simple
-/// timer-less initialization of peripherals iff accurate timing is not essential. In any other
-/// case please use more accurate methods to cause a delay.
+/// timer-less initialization of peripherals if and only if accurate timing is not essential. In
+/// any other case please use a more accurate method to produce a delay.
#[inline]
pub fn delay(_n: u32) {
// NOTE(divide by 4) is easier to compute than `/ 3` because it's just a shift (`>> 2`).