Skip to content

Commit

Permalink
Fix comment typos
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Gurney <[email protected]>
  • Loading branch information
bgurney-rh committed Sep 20, 2023
1 parent 07d9946 commit 118aa99
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl BlkidCache {
self.1 = true;
}

/// Allocate and initalize cache handler
/// Allocate and initialize cache handler
///
/// Use None for filename to use the default cache path
pub fn get_cache(filename: Option<&Path>) -> Result<Self> {
Expand All @@ -53,7 +53,7 @@ impl BlkidCache {
Ok(BlkidCache(cache, false))
}

/// Removes non-existant devices from cache
/// Removes non-existent devices from cache
pub fn gc_cache(&mut self) {
unsafe { libblkid_rs_sys::blkid_gc_cache(self.0) }
}
Expand Down
2 changes: 1 addition & 1 deletion src/partition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl BlkidPartition {
BlkidSectors::new(unsafe { libblkid_rs_sys::blkid_partition_get_size(self.0) })
}

/// Get the numberic partition type. Use `get_type_string` for the `String`
/// Get the numeric partition type. Use `get_type_string` for the `String`
/// representation.
pub fn get_type(&self) -> libc::c_int {
unsafe { libblkid_rs_sys::blkid_partition_get_type(self.0) }
Expand Down
4 changes: 2 additions & 2 deletions src/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ pub fn is_known_fs_type(fstype: &str) -> Result<bool> {
/// internal state.
///
/// This method in libblkid exposes implementation details of the library. There
/// is no way to map indicies to types without duplicating logic inside and outside
/// is no way to map indices to types without duplicating logic inside and outside
/// of the library.
pub fn get_superblock_name(
index: usize,
Expand Down Expand Up @@ -382,7 +382,7 @@ pub fn is_known_partition_type(type_: &str) -> bool {
/// internal state.
///
/// This method in libblkid exposes implementation details of the library. There
/// is no way to map indicies to types without duplicating logic inside and outside
/// is no way to map indices to types without duplicating logic inside and outside
/// of the library.
pub fn get_partition_name(index: usize) -> Result<&'static str> {
let mut name_ptr: *const libc::c_char = ptr::null();
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl BlkidBytes {
BlkidBytes(num)
}

/// Return the number of sectors repesented by this number of bytes or
/// Return the number of sectors represented by this number of bytes or
/// an error if the number of bytes is not divisible by the sector size.
pub fn sectors(&self) -> Result<BlkidSectors> {
if self.0 % SECTOR_SIZE != 0 {
Expand Down

0 comments on commit 118aa99

Please sign in to comment.