Skip to content

Commit

Permalink
README updated
Browse files Browse the repository at this point in the history
  • Loading branch information
idugalic committed Jan 29, 2025
1 parent 86d66f0 commit ca0b0e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* [**f`(`model`)`** - Functional Domain Modeling with Rust](#fmodel---functional-domain-modeling-with-rust)
* [`IOR<Library, Inspiration>`](#iorlibrary-inspiration)
* [Abstraction and generalization](#abstraction-and-generalization)
* [`Box<dyn Fn(&C, &S) -> Vec<E>>`](#boxdyn-fnc-s---vece)
* [`Box<dyn Fn(&C, &S) -> Result<Vec<E>, Error>`](#boxdyn-fnc-s---vece)
* [`Box<dyn Fn(&S, &E) -> S>`](#boxdyn-fns-e---s)
* [Decider](#decider)
* [Event-sourcing aggregate](#event-sourcing-aggregate)
Expand Down Expand Up @@ -268,7 +268,7 @@ Fmodel library offers generic and abstract components to specialize in for your
- Decider - data type that represents the main decision-making algorithm.

```rust
fn order_decider<'a>() -> Decider<'a, OrderCommand, OrderState, OrderEvent> {
fn decider<'a>() -> Decider<'a, OrderCommand, OrderState, OrderEvent> {
Decider {
decide: Box::new(|command, state| match command {
OrderCommand::Create(cmd) => Ok(vec![OrderEvent::Created(OrderCreatedEvent {
Expand Down

0 comments on commit ca0b0e5

Please sign in to comment.