Skip to content

Commit

Permalink
Update error-handling.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DrW3RK authored Sep 14, 2023
1 parent 5534dc5 commit 10d61e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Rust/section4/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ necessary. Rust includes two commonly used _enums_ that help ensure data is vali
Both types ensure invalid data and errors are handled adequately and do not cause the program to
panic.

<iframe width="560" height="315" src="https://www.youtube.com/embed/TTZs6pVdTaA?si=HLz41P7HUOKpcMs_" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

## Using Option

Option is an enum that contains two variants - `None` and `Some`:
Expand Down

0 comments on commit 10d61e3

Please sign in to comment.