Skip to content

Commit 2e7a2b6

Browse files
authored
Merge pull request embassy-rs#3903 from rxwb/fix-the-the
doc: Fix "the the"
2 parents a1e7584 + 7a2f038 commit 2e7a2b6

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

docs/pages/new_project.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "7703f
109109
embassy-stm32 = { git = "https://github.com/embassy-rs/embassy", rev = "7703f47c1ecac029f603033b7977d9a2becef48c" }
110110
----
111111

112-
There are a few other dependencies we need to build the project, but fortunately they’re much simpler to install. Copy their lines from the example `Cargo.toml` to the the `[dependencies]` section in the new `Cargo.toml`:
112+
There are a few other dependencies we need to build the project, but fortunately they’re much simpler to install. Copy their lines from the example `Cargo.toml` to the `[dependencies]` section in the new `Cargo.toml`:
113113

114114
[source,toml]
115115
----

embassy-net-esp-hosted/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ESP-Hosted `embassy-net` integration
22

3-
[`embassy-net`](https://crates.io/crates/embassy-net) integration for Espressif SoCs running the the [ESP-Hosted](https://github.com/espressif/esp-hosted) stack.
3+
[`embassy-net`](https://crates.io/crates/embassy-net) integration for Espressif SoCs running the [ESP-Hosted](https://github.com/espressif/esp-hosted) stack.
44

55
See [`examples`](https://github.com/embassy-rs/embassy/tree/main/examples/nrf52840) directory for usage examples with the nRF52840.
66

embassy-rp/src/float/div.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ where
4040
// using a wrong divisor, but we'll restore the divisor and result ourselves correctly.
4141
// This sets DIRTY, so any interruptor will save the state.
4242
sio.div().udividend().write_value(dividend);
43-
// If we are interrupted here, the the interruptor may start the calculation using
43+
// If we are interrupted here, the interruptor may start the calculation using
4444
// incorrectly signed inputs, but we'll restore the result ourselves.
4545
// This sets DIRTY, so any interruptor will save the state.
4646
sio.div().udivisor().write_value(divisor);

embassy-rp/src/intrinsics.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,9 @@ core::arch::global_asm!(
335335
// result ourselves correctly. This sets DIRTY, so any interruptor will
336336
// save the state.
337337
"str r3, [r2, #0x060]", // DIV_UDIVIDEND
338-
// If we are interrupted here, the the interruptor may start the
339-
// calculation using incorrectly signed inputs, but we'll restore the
340-
// result ourselves. This sets DIRTY, so any interruptor will save the
341-
// state.
338+
// If we are interrupted here, the interruptor may start the calculation
339+
// using incorrectly signed inputs, but we'll restore the result ourselves.
340+
// This sets DIRTY, so any interruptor will save the state.
342341
"str r4, [r2, #0x064]", // DIV_UDIVISOR
343342
// If we are interrupted here, the interruptor will have restored
344343
// everything but the quotient may be wrongly signed. If the calculation

embassy-stm32/src/sdmmc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ impl<'d, T: Instance, Dma: SdmmcDma<T> + 'd> Sdmmc<'d, T, Dma> {
910910
}
911911

912912
async fn get_scr(&mut self, card: &mut Card) -> Result<(), Error> {
913-
// Read the the 64-bit SCR register
913+
// Read the 64-bit SCR register
914914
Self::cmd(Cmd::set_block_length(8), false)?; // CMD16
915915
Self::cmd(Cmd::app_cmd(card.rca << 16), false)?;
916916

embassy-stm32/src/usart/buffered.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ impl<'d> Drop for BufferedUartRx<'d> {
747747
unsafe {
748748
state.rx_buf.deinit();
749749

750-
// TX is inactive if the the buffer is not available.
750+
// TX is inactive if the buffer is not available.
751751
// We can now unregister the interrupt handler
752752
if state.tx_buf.len() == 0 {
753753
self.info.interrupt.disable();
@@ -768,7 +768,7 @@ impl<'d> Drop for BufferedUartTx<'d> {
768768
unsafe {
769769
state.tx_buf.deinit();
770770

771-
// RX is inactive if the the buffer is not available.
771+
// RX is inactive if the buffer is not available.
772772
// We can now unregister the interrupt handler
773773
if state.rx_buf.len() == 0 {
774774
self.info.interrupt.disable();

embassy-usb/src/class/web_usb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ pub struct WebUsb<'d, D: Driver<'d>> {
140140
impl<'d, D: Driver<'d>> WebUsb<'d, D> {
141141
/// Builder for the WebUSB capability implementation.
142142
///
143-
/// Pass in a USB `Builder`, a `State`, which holds the the control endpoint state, and a `Config` for the WebUSB configuration.
143+
/// Pass in a USB `Builder`, a `State`, which holds the control endpoint state, and a `Config` for the WebUSB configuration.
144144
pub fn configure(builder: &mut Builder<'d, D>, state: &'d mut State<'d>, config: &'d Config<'d>) {
145145
let mut func = builder.function(USB_CLASS_VENDOR, USB_SUBCLASS_NONE, USB_PROTOCOL_NONE);
146146
let mut iface = func.interface();

embassy-usb/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub trait Handler {
120120
/// # Returns
121121
///
122122
/// If you didn't handle this request (for example if it's for the wrong interface), return
123-
/// `None`. In this case, the the USB stack will continue calling the other handlers, to see
123+
/// `None`. In this case, the USB stack will continue calling the other handlers, to see
124124
/// if another handles it.
125125
///
126126
/// If you did, return `Some` with either `Accepted` or `Rejected`. This will make the USB stack
@@ -142,7 +142,7 @@ pub trait Handler {
142142
/// # Returns
143143
///
144144
/// If you didn't handle this request (for example if it's for the wrong interface), return
145-
/// `None`. In this case, the the USB stack will continue calling the other handlers, to see
145+
/// `None`. In this case, the USB stack will continue calling the other handlers, to see
146146
/// if another handles it.
147147
///
148148
/// If you did, return `Some` with either `Accepted` or `Rejected`. This will make the USB stack

0 commit comments

Comments
 (0)