Skip to content

Commit

Permalink
XML doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gusty committed Sep 16, 2023
1 parent 5461162 commit 1283d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FSharpPlus/Data/ValueOption.fs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type ValueOptionT<'``monad<voption<'t>>``> with
static member inline (>>=) (x: ValueOptionT<'``Monad<voption<'T>``>, f: 'T -> ValueOptionT<'``Monad<voption<'U>``>) = ValueOptionT.bind f x

/// <summary>
/// Composes left-to-right two option functions (Kleisli composition).
/// Composes left-to-right two ValueOption functions (Kleisli composition).
/// </summary>
/// <category index="2">Monad</category>
static member inline (>=>) (f: 'T -> ValueOptionT<'``Monad<voption<'U>``>, g: 'U -> ValueOptionT<'``Monad<voption<'V>``>) : 'T -> ValueOptionT<'``Monad<voption<'V>``> = fun x -> ValueOptionT.bind g (f x)
Expand Down
2 changes: 1 addition & 1 deletion src/FSharpPlus/Extensions/Result.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Result =
let apply f (x: Result<'T,'Error>) : Result<'U,'Error> = match f, x with Ok a, Ok b -> Ok (a b) | Error e, _ | _, Error e -> Error e

/// <summary>If value is Ok, returns both of them tupled. Otherwise it returns the Error value twice in a tuple.</summary>
/// <param name="v">The value.</param>
/// <param name="source">The value.</param>
/// <returns>The resulting tuple.</returns>
let unzip (source: Result<'T * 'U, 'Error>) : Result<'T, 'Error> * Result<'U, 'Error> = match source with Ok (x, y) -> Ok x, Ok y | Error e -> Error e, Error e

Expand Down

0 comments on commit 1283d35

Please sign in to comment.