Skip to content

Commit

Permalink
Merge pull request #14 from mulkieran/fix-typos
Browse files Browse the repository at this point in the history
Fix a few typos noticed by typos
  • Loading branch information
mulkieran authored Apr 3, 2024
2 parents cccbae6 + f6c0bcb commit e9dfceb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -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)]

Expand Down Expand Up @@ -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<LoopDevice> {
let dev_num = ioctl_to_error(unsafe {
Expand Down
2 changes: 1 addition & 1 deletion tests/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn partition_backing_file(backing_file: impl AsRef<Path>, size: u64) {
.expect("could not open backing file");

disk.update_partitions(std::collections::BTreeMap::<u32, gpt::partition::Partition>::new())
.expect("coult not initialize blank partition table");
.expect("could not initialize blank partition table");

disk.add_partition(
"Linux filesystem",
Expand Down

0 comments on commit e9dfceb

Please sign in to comment.