Skip to content

Commit 1ff4b54

Browse files
gustywallymathieu
authored andcommitted
Fix xml comment
1 parent f024238 commit 1ff4b54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FSharpPlus/Data/NonEmptyList.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ module NonEmptyList =
175175
| _ -> x, ofList xs
176176
#endif
177177

178-
/// <summary>Splits the list in head and tail.</summary>
179-
/// <param name="list">The input list.</param>
178+
/// <summary>Splits the NonEmptyList in head and tail.</summary>
179+
/// <param name="list">The input (non empty) list.</param>
180180
/// <returns>A tuple with the head and the tail of the original list.</returns>
181-
let unconsAsList { Head = x; Tail = xs } = x, xs
181+
let unconsAsList list = match list with { Head = x; Tail = xs } -> x, xs
182182

183183
/// Returns the first element of a new non empty list. You can also use property nel.Head.
184184
let head {Head = x; Tail = _ } = x

0 commit comments

Comments
 (0)