Просмотр исходного кода

Fix condition in documentation example (#2251)

Barbara Lócsi 4 дней назад
Родитель
Сommit
f190b25f47
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Rx.NET/Documentation/IntroToRx/03_CreatingObservableSequences.md

+ 1 - 1
Rx.NET/Documentation/IntroToRx/03_CreatingObservableSequences.md

@@ -461,7 +461,7 @@ IObservable<string> 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)