Skip to content

Commit f190b25

Browse files
authored
Fix condition in documentation example (#2251)
1 parent 1ce85f4 commit f190b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rx.NET/Documentation/IntroToRx/03_CreatingObservableSequences.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ IObservable<string> ReadFileLines(string path) =>
461461
{
462462
using (StreamReader reader = File.OpenText(path))
463463
{
464-
while (cancellationToken.IsCancellationRequested)
464+
while (!cancellationToken.IsCancellationRequested)
465465
{
466466
string? line = await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false);
467467
if (line is null)

0 commit comments

Comments
 (0)