Skip to content

Commit 0728d80

Browse files
committed
Return value of IO::Socket::INET.get is Nil on EOF.
According to the implementation of IO::Socket and IO::Socket::INET the get method returns Nil on end of input, not a type object: $line.DEFINITE ?? $line !! Nil
1 parent d378e69 commit 0728d80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/IO/Socket/INET.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ the character(s) that separate lines.
7878
7979
method get()
8080
81-
Reads a line from the socket and returns it. Returns the L<Str|/type/Str> type
82-
object on end-of-file (EOF).
81+
Reads a line from the socket and returns it as of type L<Str|/type/Str>.
82+
Return L<Nil> on end-of-file (EOF).
8383
8484
=head2 method lines
8585

0 commit comments

Comments
 (0)