diff --git a/Diary/2023-09-11_And.md b/Diary/2023-09-11_And.md index e15873d..e738c3a 100644 --- a/Diary/2023-09-11_And.md +++ b/Diary/2023-09-11_And.md @@ -16,7 +16,7 @@ To fix this, you can nest the Binds, so that the customer reference is available ```csharp Result result = CustomerRepository.Load(customerId) .Bind(customer => OrderRepository.Query(x => x.CustomerId == customerId) - .Bind(orders => customer.SetOrderCount(orders.Count()))); // Binds directly on the returned Result of the previous Bind. + .Bind(orders => customer.SetOrderCount(orders.Count()))); // Binds directly on the returned Result of the function inside the "previous" Bind. ``` "And", can do this for you diff --git a/Results/Tap.cs b/Results/Tap.cs index 9bfb51b..8b0e1b9 100644 --- a/Results/Tap.cs +++ b/Results/Tap.cs @@ -1,5 +1,5 @@ namespace DotNetThoughts.Results; -public static partial class And +public static partial class Extensions { public static Result Tap(this Result source, Action next) {