From ca0b0e5c84fceea620b7b659a270b4d43e9d47fc Mon Sep 17 00:00:00 2001 From: Ivan Dugalic Date: Wed, 29 Jan 2025 21:23:28 +0100 Subject: [PATCH] README updated --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a18a161..5c577ae 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ * [**f`(`model`)`** - Functional Domain Modeling with Rust](#fmodel---functional-domain-modeling-with-rust) * [`IOR`](#iorlibrary-inspiration) * [Abstraction and generalization](#abstraction-and-generalization) - * [`Box Vec>`](#boxdyn-fnc-s---vece) + * [`Box Result, Error>`](#boxdyn-fnc-s---vece) * [`Box S>`](#boxdyn-fns-e---s) * [Decider](#decider) * [Event-sourcing aggregate](#event-sourcing-aggregate) @@ -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 {