Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 18, 2013
1 parent 0030257 commit aaef945
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -575,7 +575,7 @@ Mojo::UserAgent - Non-blocking I/O HTTP and WebSocket user agent
# Non-blocking WebSocket connection
$ua->websocket('ws://websockets.org:8787' => sub {
my ($ua, $tx) = @_;
return say 'WebSocket handshake failed!' unless $tx->is_websocket;
say 'WebSocket handshake failed!' and return unless $tx->is_websocket;
$tx->on(finish => sub { say 'WebSocket closed.' });
$tx->on(message => sub {
my ($tx, $msg) = @_;
Expand Down Expand Up @@ -1003,7 +1003,7 @@ same arguments as L<Mojo::UserAgent::Transactor/"websocket">.
$ua->websocket('ws://localhost:3000/echo' => sub {
my ($ua, $tx) = @_;
return say 'WebSocket handshake failed!' unless $tx->is_websocket;
say 'WebSocket handshake failed!' and return unless $tx->is_websocket;
$tx->on(message => sub {
my ($tx, $msg) = @_;
say $msg;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -40,7 +40,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Rainbow';
our $VERSION = '3.91';
our $VERSION = '3.92';

sub AUTOLOAD {
my $self = shift;
Expand Down

0 comments on commit aaef945

Please sign in to comment.