Skip to content

Commit 4bbda8d

Browse files
committed
docs: update readme
1 parent 0803c15 commit 4bbda8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,15 +444,15 @@ export default class Order extends Aggregate<Props> {
444444
this.props.payment = payment;
445445
// Add an event to indicate that the order has been paid.
446446
// Assuming OrderPaidEvent is a class representing
447-
// the event of order payment.
447+
// the event of order payment.
448448
this.addEvent(new OrderPaidEventHandler());
449449
return this;
450450
}
451451

452452
// Static method to create an instance of Order.
453453
// Returns a Result, which can be Ok (success) or Fail (failure).
454454
// The value of the Result is an instance of Order,
455-
// if creation is successful.
455+
// if creation is successful.
456456
public static create(props: Props): Result<Order> {
457457
return Ok(new Order(props));
458458
}
@@ -465,7 +465,7 @@ How to use events
465465
```ts
466466

467467
order.addEvent('OTHER_EVENT', (...args) => {
468-
console.log(args);
468+
console.log(args);
469469
});
470470

471471
// Or add an EventHandler instance

0 commit comments

Comments
 (0)