From a23e8bb0c57b2602b49eb9b6f16a45eb8736ebac Mon Sep 17 00:00:00 2001 From: Tomas Weinfurt Date: Mon, 15 Jul 2024 14:40:06 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Stephen Toub --- .../src/System/Net/Sockets/SocketPal.Unix.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Unix.cs b/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Unix.cs index 2658d2339a6676..df3a2d4021d561 100644 --- a/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Unix.cs +++ b/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Unix.cs @@ -1894,8 +1894,8 @@ private static unsafe void AddToPollArray(Interop.PollEvent* arr, int arrLength, if (readCount > 0) { - // some platfoms like macOS do not like if there is duplication between real and error list. - // To fix that we will search read list and if macthing descriptor exiost we will add events flags + // some platfoms like macOS do not like if there is duplication between read and error list. + // To fix that we will search read list and if a matching descriptor exists we will add events flags // instead of adding new entry to error list. int readIndex = 0; while (readIndex < readCount)