Skip to content

Commit

Permalink
Update Network/Socket/Info.hsc
Browse files Browse the repository at this point in the history
Co-authored-by: endgame <[email protected]>
  • Loading branch information
kazu-yamamoto and endgame authored Sep 6, 2024
1 parent 1411634 commit ff99e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Network/Socket/Info.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff99e97

Please sign in to comment.