Skip to content

Commit

Permalink
Merge pull request #10525 from TheJayMann/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermp committed Nov 24, 2020
2 parents 0c2f90f + 8ec5e82 commit fd688c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fsharp/FSharp.Core/seq.fs
Expand Up @@ -684,9 +684,9 @@ namespace Microsoft.FSharp.Collections
(* Note: don't create or dispose any IEnumerable if n = 0 *)
if count = 0 then empty else
seq { use e = source.GetEnumerator()
for x in 0 .. count - 1 do
for x in count .. - 1 .. 1 do
if not (e.MoveNext()) then
invalidOpFmt "tried to take {0} {1} past the end of the seq"
invalidOpFmt "{0}: tried to take {1} {2} past the end of the seq"
[|SR.GetString SR.notEnoughElements; x; (if x = 1 then "element" else "elements")|]
yield e.Current }

Expand Down

0 comments on commit fd688c7

Please sign in to comment.