Skip to content

Commit e90307d

Browse files
committed
Auto merge of #33251 - Kintaro:fix-typo-in-fs, r=GuillaumeGomez
Fix a typo in error messages in std::fs tests Just a small correction to fix a typo in an error message in std::fs tests
2 parents bb39c49 + 0c05953 commit e90307d

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)