Skip to content

Commit 51245a6

Browse files
committed
typos
1 parent 8c070c7 commit 51245a6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

uefi/src/data_types/strs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ impl CStr16 {
337337
}
338338

339339
/// Writes each [`Char16`] as a [`char`] (4 bytes long in Rust language) into the buffer.
340-
/// It is up the the implementer of [`core::fmt::Write`] to convert the char to a string
340+
/// It is up the implementer of [`core::fmt::Write`] to convert the char to a string
341341
/// with proper encoding/charset. For example, in the case of [`alloc::string::String`]
342342
/// all Rust chars (UTF-32) get converted to UTF-8.
343343
///

uefi/src/proto/console/text/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl<'boot> Output<'boot> {
110110
(self.query_mode)(self, index, &mut columns, &mut rows).into_with_val(|| (columns, rows))
111111
}
112112

113-
/// Returns the the current text mode.
113+
/// Returns the current text mode.
114114
pub fn current_mode(&self) -> Result<Option<OutputMode>> {
115115
match self.data.mode {
116116
-1 => Ok(None),

uefi/src/proto/media/file/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ pub trait File: Sized {
228228
fn is_directory(&self) -> Result<bool>;
229229
}
230230

231-
// Internal File helper methods to access the funciton pointer table.
231+
// Internal File helper methods to access the function pointer table.
232232
trait FileInternal: File {
233233
fn imp(&mut self) -> &mut FileImpl {
234234
unsafe { &mut *self.handle().0 }

xtask/src/device_path/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl Node {
165165
}
166166

167167
// It's not trivial to nicely format the DST data since
168-
// the the slice might be unaligned. Treat it as a byte
168+
// the slice might be unaligned. Treat it as a byte
169169
// slice instead.
170170
quote!({
171171
let ptr = addr_of!(#field_val);

0 commit comments

Comments
 (0)