Skip to content

Commit 1bf76c5

Browse files
committed
Updated 'src/error_handling/result.md'.
1 parent fa20114 commit 1bf76c5

File tree

3 files changed

+147
-132
lines changed

3 files changed

+147
-132
lines changed

projects/result_demo/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "result_demo"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]

projects/result_demo/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
use std::fs::File;
2+
3+
fn main () {
4+
let greeting_file = File::open("hello.txt")?;
5+
}

0 commit comments

Comments
 (0)