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

3 lines
159 B
Markdown

# for quick prototyping:
- let file = File::open("hello.txt").unwrap(); //panics
- let file = File::open("hello.txt").expect("Failed to open") // custom error