Skip to content

Commit 73ba4fd

Browse files
committed
change various Socket .send to .print
1 parent 3d461f4 commit 73ba4fd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/Type/IO/Socket.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ L<Blob|/type/Blob>.
3030
3131
Fails if the socket is not connected.
3232
33-
=head2 method send
33+
=head2 method print
3434
35-
method send(IO::Socket:D: Str(Cool) $string)
35+
method print(IO::Socket:D: Str(Cool) $string)
3636
3737
Writes the supplied string to the socket, thus sending it to other end of the
3838
connection. The binary version is L<#method write>.

lib/Type/IO/Socket/Async.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ process the client connections.
6969
To close the underlying listening socket the L<Supply|/lib/Type/Supply>
7070
should be C<close>d.
7171
72-
=head2 method send
72+
=head2 method print
7373
74-
method send(Str $str) returns Promise
74+
method print(Str $str) returns Promise
7575
7676
Attempt to send C<$str> on the L<IO::Socket::Async> that will
7777
have been obtained indirectly via C<connect> or C<listen>, returning a

lib/Type/IO/Socket/INET.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ And a client that connects to it, and prints out what the server answers:
3030
use v6;
3131
3232
my $conn = IO::Socket::INET.new(:host<localhost>, :port(3333));
33-
$conn.send: 'Hello, Perl 6';
33+
$conn.print: 'Hello, Perl 6';
3434
say $conn.recv;
3535
$conn.close;
3636
=end code

0 commit comments

Comments
 (0)