Skip to content

Commit c5b25ad

Browse files
k-nasalaysakura
andauthored
Update chapter3/src/3_9_5/main.rs
Co-authored-by: Sho Nakatani <[email protected]>
1 parent 6195a74 commit c5b25ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter3/src/3_9_5/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ where
2020
}
2121

2222
fn main() -> Result<()> {
23-
let mut file = File::open("test.txt")?;
23+
let mut file = File::open("test.txt").expect(r#"動作には4バイト以上の "{}/test.txt" が必要です。"#, std::env::current_dir()?.display());
2424
let mut new_file = File::create("new_test.txt")?;
2525

2626
copy_n(&mut file, &mut new_file, 4)?;

0 commit comments

Comments
 (0)