From ff99e970111da5eddab4c7d519e78102c8b7873d Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Fri, 6 Sep 2024 11:21:43 +0900 Subject: [PATCH] Update Network/Socket/Info.hsc Co-authored-by: endgame --- Network/Socket/Info.hsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Network/Socket/Info.hsc b/Network/Socket/Info.hsc index 72f212a1..c16dbdc0 100644 --- a/Network/Socket/Info.hsc +++ b/Network/Socket/Info.hsc @@ -315,7 +315,7 @@ getAddrInfoList hints node service = followAddrInfo :: Ptr AddrInfo -> IO (NonEmpty AddrInfo) followAddrInfo ptr_ai - | ptr_ai == nullPtr = ioError $ mkIOError NoSuchThing "getaddrinfo must retuan at least one addrinfo" Nothing Nothing + | ptr_ai == nullPtr = ioError $ mkIOError NoSuchThing "getaddrinfo must return at least one addrinfo" Nothing Nothing | otherwise = do a <- peek ptr_ai ptr <- (# peek struct addrinfo, ai_next) ptr_ai