rust-Journey/erro-handling/README.md
2025-12-16 22:10:06 +05:45

159 B

for quick prototyping:

  • let file = File::open("hello.txt").unwrap(); //panics
  • let file = File::open("hello.txt").expect("Failed to open") // custom error