Skip to content

Commit 0c05953

Browse files
committed
Fix a typo in error messages in std::fs tests
1 parent cda7c1c commit 0c05953

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ mod tests {
15431543
let result = File::open(filename);
15441544

15451545
if cfg!(unix) {
1546-
error!(result, "o such file or directory");
1546+
error!(result, "No such file or directory");
15471547
}
15481548
if cfg!(windows) {
15491549
error!(result, "The system cannot find the file specified");
@@ -1558,7 +1558,7 @@ mod tests {
15581558
let result = fs::remove_file(filename);
15591559

15601560
if cfg!(unix) {
1561-
error!(result, "o such file or directory");
1561+
error!(result, "No such file or directory");
15621562
}
15631563
if cfg!(windows) {
15641564
error!(result, "The system cannot find the file specified");

0 commit comments

Comments
 (0)