Skip to content

Commit

Permalink
fix a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 13, 2015
1 parent b21fd0a commit 258a84f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Reactor/Poll.pm
Expand Up @@ -45,7 +45,7 @@ sub one_tick {
if (IO::Poll::_poll($timeout * 1000, @poll) > 0) {
while (my ($fd, $mode) = splice @poll, 0, 2) {

if ($mode & (POLLIN | POLLPRI | POLLHUP | POLLNVAL | POLLERR)) {
if ($mode & (POLLIN | POLLPRI | POLLNVAL | POLLHUP | POLLERR)) {
next unless my $io = $self->{io}{$fd};
++$i and $self->_sandbox('Read', $io->{cb}, 0);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/UserAgent.pm
Expand Up @@ -45,7 +45,7 @@ sub build_websocket_tx { shift->transactor->websocket(@_) }
sub start {
my ($self, $tx, $cb) = @_;

# Fork safety
# Fork-safety
$self->_cleanup->server->restart unless ($self->{pid} //= $$) eq $$;

# Non-blocking
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/user_agent.t
Expand Up @@ -360,7 +360,7 @@ is $tx->res->headers->content_encoding, 'gzip',
'right "Content-Encoding" value';
isnt $tx->res->body, 'Hello GZip!', 'different content';

# Fork safety
# Fork-safety
$tx = $ua->get('/');
is $tx->res->body, 'works!', 'right content';
my $last = $tx->connection;
Expand Down

0 comments on commit 258a84f

Please sign in to comment.