Skip to content

Commit

Permalink
Update result.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwindmill authored Dec 9, 2024
1 parent 1b8f39e commit 3d54a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/cookbook/architecture/result.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ how to use a `Result` class to return result values.
The key takeaways are:

- `Result` classes force the calling method to check for errors,
reducing the amount of bugs caused by uncaught exceptions[switch result or expression.
reducing the amount of bugs caused by uncaught exceptions.
- `Result` classes help improve control flow compared to try-catch blocks.
- `Result` classes are `sealed` and can only return `Ok` or `Error` instances,
allowing the code to unwrap them with a switch statement.
Expand Down

0 comments on commit 3d54a39

Please sign in to comment.