Skip to content

Commit

Permalink
Fix typos “a”→“an”
Browse files Browse the repository at this point in the history
  • Loading branch information
steffahn authored and Amanieu committed Aug 22, 2021
1 parent 435f54a commit a4147d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/core_arch/src/arm/ex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub unsafe fn __clrex() {
clrex()
}

/// Executes a exclusive LDR instruction for 8 bit value.
/// Executes an exclusive LDR instruction for 8 bit value.
// Supported: v6K, v7-M, v7-A, v7-R
// Not supported: v5, v6, v6-M
#[cfg(any(
Expand All @@ -35,7 +35,7 @@ pub unsafe fn __ldrexb(p: *const u8) -> u8 {
ldrex8(p) as u8
}

/// Executes a exclusive LDR instruction for 16 bit value.
/// Executes an exclusive LDR instruction for 16 bit value.
// Supported: v6K, v7-M, v7-A, v7-R, v8
// Not supported: v5, v6, v6-M
#[cfg(any(
Expand All @@ -51,7 +51,7 @@ pub unsafe fn __ldrexh(p: *const u16) -> u16 {
ldrex16(p) as u16
}

/// Executes a exclusive LDR instruction for 32 bit value.
/// Executes an exclusive LDR instruction for 32 bit value.
// Supported: v6, v7-M, v6K, v7-A, v7-R, v8
// Not supported: v5, v6-M
#[cfg(any(
Expand All @@ -68,7 +68,7 @@ pub unsafe fn __ldrex(p: *const u32) -> u32 {
ldrex32(p)
}

/// Executes a exclusive STR instruction for 8 bit values
/// Executes an exclusive STR instruction for 8 bit values
///
/// Returns `0` if the operation succeeded, or `1` if it failed
// supported: v6K, v7-M, v7-A, v7-R
Expand All @@ -86,7 +86,7 @@ pub unsafe fn __strexb(value: u32, addr: *mut u8) -> u32 {
strex8(value, addr)
}

/// Executes a exclusive STR instruction for 16 bit values
/// Executes an exclusive STR instruction for 16 bit values
///
/// Returns `0` if the operation succeeded, or `1` if it failed
// Supported: v6K, v7-M, v7-A, v7-R, v8
Expand All @@ -105,7 +105,7 @@ pub unsafe fn __strexh(value: u16, addr: *mut u16) -> u32 {
strex16(value as u32, addr)
}

/// Executes a exclusive STR instruction for 32 bit values
/// Executes an exclusive STR instruction for 32 bit values
///
/// Returns `0` if the operation succeeded, or `1` if it failed
// Supported: v6, v7-M, v6K, v7-A, v7-R, v8
Expand Down

0 comments on commit a4147d0

Please sign in to comment.