Преглед на файлове

Fix condition in documentation example (#2251)

Barbara Lócsi преди 2 дни
родител
ревизия
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)