diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AppendPrepend.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AppendPrepend.cs index 6738858..3935afd 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AppendPrepend.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AppendPrepend.cs @@ -17,7 +17,7 @@ namespace Cysharp.Threading.Tasks.Linq { Error.ThrowArgumentNullException(source, nameof(source)); - return new AppendPrepend(source, element, true); + return new AppendPrepend(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;