From dccdbbc629a15dbb1ab8c795ca515364cc81bfc7 Mon Sep 17 00:00:00 2001 From: Ruben Bartelink Date: Wed, 14 Feb 2024 14:40:10 +0000 Subject: [PATCH] fix(doc): Option.traverseResult typo (#253) --- gitbook/resultOption/traverseResult.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitbook/resultOption/traverseResult.md b/gitbook/resultOption/traverseResult.md index da8e4fa9..f1f0ddff 100644 --- a/gitbook/resultOption/traverseResult.md +++ b/gitbook/resultOption/traverseResult.md @@ -63,7 +63,7 @@ let createPostRequestFromDto (dto : CreatePostRequestDto) = result { // Parse the location DTO option to a Location option, // returning an error if it's Some and invalid let! location = - dto.Location |> Option.traverseResult locationDtoToLocation + dto.Location |> Option.traverseResult locationFromDto let! tweet = Tweet.TryCreate dto.Tweet return { @@ -73,4 +73,4 @@ let createPostRequestFromDto (dto : CreatePostRequestDto) = result { } ``` -See also the [example 2](../resultOption/map2.md#example-2) of ResultOption.map2. \ No newline at end of file +See also the [example 2](../resultOption/map2.md#example-2) of ResultOption.map2.