Skip to content

Commit 2fab549

Browse files
thejpsterjonathanpallant
authored andcommitted
Fix example volume names.
1 parent 69c48fd commit 2fab549

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/shell.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//!
1313
//! The four primary partitions are scanned on the given disk image on start-up.
1414
//! Any valid FAT16 or FAT32 volumes are mounted, and given volume labels from
15-
//! `A:` to `C:`, like MS-DOS. Also like MS-DOS, file and directory names use
15+
//! `A:` to `D:`, like MS-DOS. Also like MS-DOS, file and directory names use
1616
//! the `8.3` format, like `FILENAME.TXT`. Long filenames are not supported.
1717
//!
1818
//! Unlike MS-DOS, this application uses the POSIX `/` as the directory
@@ -214,7 +214,7 @@ impl Context {
214214
println!();
215215
println!("\t* Bare names, like `FILE.DAT`");
216216
println!("\t* Relative, like `../SOMEDIR/FILE.DAT` or `./FILE.DAT`");
217-
println!("\t* Absolute, like `1:/SOMEDIR/FILE.DAT`");
217+
println!("\t* Absolute, like `B:/SOMEDIR/FILE.DAT`");
218218
Ok(())
219219
}
220220

@@ -291,7 +291,7 @@ impl Context {
291291
/// * An arg of `..` goes up one level
292292
/// * A relative arg like `../FOO` goes up a level and then into the `FOO`
293293
/// sub-folder, starting from the current directory on the current volume
294-
/// * An absolute path like `1:/FOO` changes the CWD on Volume 1 to path
294+
/// * An absolute path like `B:/FOO` changes the CWD on Volume 1 to path
295295
/// `/FOO`
296296
fn cd(&mut self, full_path: &Path) -> Result<(), Error> {
297297
let volume_idx = self.resolve_volume(full_path)?;
@@ -425,7 +425,7 @@ impl Context {
425425
/// directory in the current volume.
426426
/// * Relative names, like `../SOMEDIR` or `./SOMEDIR`, traverse
427427
/// starting at the current volume and directory.
428-
/// * Absolute, like `1:/SOMEDIR/OTHERDIR` start at the given volume.
428+
/// * Absolute, like `B:/SOMEDIR/OTHERDIR` start at the given volume.
429429
fn resolve_existing_directory(&mut self, full_path: &Path) -> Result<RawDirectory, Error> {
430430
let (dir, fragment) = self.resolve_filename(full_path)?;
431431
let mut work_dir = dir.to_directory(&mut self.volume_mgr);
@@ -454,7 +454,7 @@ impl Context {
454454
/// directory in the current volume.
455455
/// * Relative names, like `../SOMEDIR/SOMEFILE` or `./SOMEDIR/SOMEFILE`, traverse
456456
/// starting at the current volume and directory.
457-
/// * Absolute, like `1:/SOMEDIR/SOMEFILE` start at the given volume.
457+
/// * Absolute, like `B:/SOMEDIR/SOMEFILE` start at the given volume.
458458
fn resolve_filename<'path>(
459459
&mut self,
460460
full_path: &'path Path,

0 commit comments

Comments
 (0)