Skip to content

Commit

Permalink
Rust doc improved
Browse files Browse the repository at this point in the history
  • Loading branch information
idugalic committed Oct 17, 2023
1 parent 494f200 commit 8dc8a34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub trait EventRepository<C, E, Version, Error> {

/// Event Sourced Aggregate.
///
/// It is using a [Decider] / [EventComputation] to compute new events based on the current events and the command.
/// It is using a `Decider` / [EventComputation] to compute new events based on the current events and the command.
/// It is using a [EventRepository] to fetch the current events and to save the new events.
///
/// Generic parameters:
Expand Down Expand Up @@ -95,7 +95,7 @@ pub trait StateRepository<C, S, Version, Error> {

/// State Stored Aggregate.
///
/// It is using a [Decider] / [StateComputation] to compute new state based on the current state and the command.
/// It is using a `Decider` / [StateComputation] to compute new state based on the current state and the command.
/// It is using a [StateRepository] to fetch the current state and to save the new state.
///
/// Generic parameters:
Expand Down
2 changes: 1 addition & 1 deletion src/materialized_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub trait ViewStateRepository<E, S, Error> {

/// Materialized View.
///
/// It is using a [View] / [ViewStateComputation] to compute new state based on the current state and the event.
/// It is using a `View` / [ViewStateComputation] to compute new state based on the current state and the event.
/// It is using a [ViewStateRepository] to fetch the current state and to save the new state.
///
/// Generic parameters:
Expand Down
2 changes: 1 addition & 1 deletion src/saga.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::ReactFunction;

/// [Saga] is a datatype that represents the central point of control, deciding what to execute next ([A]), based on the action result ([AR]).
/// [Saga] is a datatype that represents the central point of control, deciding what to execute next (`A`), based on the action result (`AR`).
/// It has two generic parameters `AR`/Action Result, `A`/Action , representing the type of the values that Saga may contain or use.
/// `'a` is used as a lifetime parameter, indicating that all references contained within the struct (e.g., references within the function closures) must have a lifetime that is at least as long as 'a.
///
Expand Down

0 comments on commit 8dc8a34

Please sign in to comment.