Skip to content

Commit 56c87ff

Browse files
committed
std: minor cleanup in some io_error descs in io::file
1 parent d3ed9a9 commit 56c87ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/rt/io/file.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ trait DirectoryInfo : FileSystemInfo {
603603
Some(_) => {
604604
io_error::cond.raise(IoError {
605605
kind: PathAlreadyExists,
606-
desc: "path already exists",
606+
desc: "Path already exists",
607607
detail:
608608
Some(fmt!("%s already exists; can't mkdir it", self.get_path().to_str()))
609609
})
@@ -642,7 +642,7 @@ trait DirectoryInfo : FileSystemInfo {
642642
None =>
643643
io_error::cond.raise(IoError {
644644
kind: PathDoesntExist,
645-
desc: "path doesn't exist",
645+
desc: "Path doesn't exist",
646646
detail: Some(fmt!("%s doesn't exist; can't rmdir it", self.get_path().to_str()))
647647
})
648648
}

0 commit comments

Comments
 (0)