diff --git a/Rx.NET/Documentation/IntroToRx/03_CreatingObservableSequences.md b/Rx.NET/Documentation/IntroToRx/03_CreatingObservableSequences.md index ee2ccebcb4..1feea991b5 100644 --- a/Rx.NET/Documentation/IntroToRx/03_CreatingObservableSequences.md +++ b/Rx.NET/Documentation/IntroToRx/03_CreatingObservableSequences.md @@ -461,7 +461,7 @@ IObservable ReadFileLines(string path) => { using (StreamReader reader = File.OpenText(path)) { - while (cancellationToken.IsCancellationRequested) + while (!cancellationToken.IsCancellationRequested) { string? line = await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false); if (line is null)