From f6c0bcb0409a1252533257d1502b1bacbe357259 Mon Sep 17 00:00:00 2001 From: mulhern Date: Wed, 3 Apr 2024 16:28:20 -0400 Subject: [PATCH] Fix a few typos noticed by typos Signed-off-by: mulhern --- src/lib.rs | 4 ++-- tests/util/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 12ef39c..a9abcd0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -// Supress warnings generated by bindgen: https://github.com/rust-lang/rust-bindgen/issues/1651 +// Suppress warnings generated by bindgen: https://github.com/rust-lang/rust-bindgen/issues/1651 #![allow(deref_nullptr)] #![allow(unknown_lints)] @@ -134,7 +134,7 @@ impl LoopControl { /// /// # Errors /// - /// This funcitons will return an error when a loop device with the passed + /// This function will return an error when a loop device with the passed /// number exists or opening the newly created device fails. pub fn add(&self, n: u32) -> io::Result { let dev_num = ioctl_to_error(unsafe { diff --git a/tests/util/mod.rs b/tests/util/mod.rs index b6bd071..ab465fa 100644 --- a/tests/util/mod.rs +++ b/tests/util/mod.rs @@ -40,7 +40,7 @@ pub fn partition_backing_file(backing_file: impl AsRef, size: u64) { .expect("could not open backing file"); disk.update_partitions(std::collections::BTreeMap::::new()) - .expect("coult not initialize blank partition table"); + .expect("could not initialize blank partition table"); disk.add_partition( "Linux filesystem",