Skip to content

Commit

Permalink
Better explanation of what happens when a step returns a Failure
Browse files Browse the repository at this point in the history
  • Loading branch information
waiting-for-dev committed Oct 31, 2024
1 parent 1370743 commit a0fbdc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docsite/source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The step method is the core of `Dry::Operation`. It does two main things:

- If the result is a `Success`, it unwraps the value and returns it.

- If the result is a `Failure`, it halts the execution throwing the failure up the call stack.
- If the result is a `Failure`, it short-circuits the operation and returns the failure.

This behavior allows you to write your happy path in a linear fashion, without worrying about handling failures at each step.

Expand Down

0 comments on commit a0fbdc7

Please sign in to comment.