From 3201c2a862d41356e0515f90f4c292099bb4c44c Mon Sep 17 00:00:00 2001 From: jjpinto Date: Fri, 23 Jan 2026 23:30:16 -0500 Subject: [PATCH] Fix typos in BookingsFinancialReport comments --- _examples/basic/5-cqrs-protobuf/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_examples/basic/5-cqrs-protobuf/main.go b/_examples/basic/5-cqrs-protobuf/main.go index 0a1a6ebe4..4b597fba7 100644 --- a/_examples/basic/5-cqrs-protobuf/main.go +++ b/_examples/basic/5-cqrs-protobuf/main.go @@ -92,7 +92,7 @@ func (o OrderBeerHandler) Handle(ctx context.Context, cmd *OrderBeer) error { // BookingsFinancialReport is a read model, which calculates how much money we may earn from bookings. // Like OrderBeerOnRoomBooked, it listens for RoomBooked event. // -// This implementation is just writing to the memory. In production, you will probably will use some persistent storage. +// This implementation is just writing to the memory. In production, you will probably use some persistent storage. type BookingsFinancialReport struct { handledBookings map[string]struct{} totalCharge int64 @@ -104,7 +104,7 @@ func NewBookingsFinancialReport() *BookingsFinancialReport { } func (b *BookingsFinancialReport) Handle(ctx context.Context, event *RoomBooked) error { - // Handle may be called concurrently, so it need to be thread safe. + // Handle may be called concurrently, so it needs to be thread safe. b.lock.Lock() defer b.lock.Unlock()