Skip to content

Commit

Permalink
More understandable wording for the short-circuiting behavior of #step
Browse files Browse the repository at this point in the history
  • Loading branch information
waiting-for-dev committed Oct 31, 2024
1 parent bba8ef1 commit 832a550
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 @@ Each step (`validate`, `persist`, `notify`) is expected to return either a `Succ
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 832a550

Please sign in to comment.