Fix UniTaskAsyncEnumerable.Prepend does not work, #251

master
neuecc 2021-04-06 13:08:18 +09:00
parent da8f599ccb
commit ecd3625a08
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ namespace Cysharp.Threading.Tasks.Linq
{
Error.ThrowArgumentNullException(source, nameof(source));
return new AppendPrepend<TSource>(source, element, true);
return new AppendPrepend<TSource>(source, element, false);
}
}
@ -79,7 +79,7 @@ namespace Cysharp.Threading.Tasks.Linq
if (enumerator == null)
{
if (state == State.RequireAppend)
if (state == State.RequirePrepend)
{
Current = element;
state = State.None;