Skip to content

Commit 58b3bd6

Browse files
Clean up comments.
1 parent 8f4cb9a commit 58b3bd6

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

src/fat/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! embedded-sdmmc-rs - FAT16/FAT32 file system implementation
1+
//! FAT16/FAT32 file system implementation
22
//!
33
//! Implements the File Allocation Table file system. Supports FAT16 and FAT32 volumes.
44

src/fat/volume.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl core::fmt::Debug for VolumeName {
3737
}
3838
}
3939

40-
/// Identifies a FAT16 Volume on the disk.
40+
/// Identifies a FAT16 or FAT32 Volume on the disk.
4141
#[cfg_attr(feature = "defmt-log", derive(defmt::Format))]
4242
#[derive(PartialEq, Eq, Debug)]
4343
pub struct FatVolume {
@@ -76,7 +76,9 @@ impl FatVolume {
7676
T: TimeSource,
7777
{
7878
match &self.fat_specific_info {
79-
FatSpecificInfo::Fat16(_) => {}
79+
FatSpecificInfo::Fat16(_) => {
80+
// FAT16 volumes don't have an info sector
81+
}
8082
FatSpecificInfo::Fat32(fat32_info) => {
8183
if self.free_clusters_count.is_none() && self.next_free_cluster.is_none() {
8284
return Ok(());

src/filesystem/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! embedded-sdmmc-rs - Generic File System structures
1+
//! Generic File System structures
22
//!
33
//! Implements generic file system components. These should be applicable to
44
//! most (if not all) supported filesystems.

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,9 @@ pub enum VolumeType {
234234
}
235235

236236
/// A `VolumeIdx` is a number which identifies a volume (or partition) on a
237-
/// disk. `VolumeIdx(0)` is the first primary partition on an MBR partitioned
238237
/// disk.
238+
///
239+
/// `VolumeIdx(0)` is the first primary partition on an MBR partitioned disk.
239240
#[cfg_attr(feature = "defmt-log", derive(defmt::Format))]
240241
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
241242
pub struct VolumeIdx(pub usize);

0 commit comments

Comments
 (0)