Skip to content

Commit

Permalink
fix typo in Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 6, 2017
1 parent 5388d59 commit ff10963
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,7 +1,7 @@

7.55 2017-11-06
- Added -role flag to Mojo::Base. (jberger)
- Improved Windows compatibility of Mojo::Server::Daemon.
- Added -role flag to Mojo::Base (jberger).

7.54 2017-11-05
- Fixed a bug in Mojo::Promise where promise chains could not recover from
Expand Down
8 changes: 4 additions & 4 deletions lib/Mojo/Base.pm
Expand Up @@ -60,9 +60,8 @@ sub attr {
}

sub import {
my $class = shift;
my ($class, $caller) = (shift, caller);
return unless my @flags = @_;
my $caller = caller;

# Base
if ($flags[0] eq '-base') { $flags[0] = $class }
Expand All @@ -82,7 +81,7 @@ sub import {
require "$file.pm";
}

# has and possibly ISA
# "has" and possibly ISA
if ($flags[0]) {
no strict 'refs';
push @{"${caller}::ISA"}, $flags[0] unless $flags[0] eq '-role';
Expand Down Expand Up @@ -167,7 +166,8 @@ interfaces.
use Mojo::Base 'SomeBaseClass';
use Mojo::Base -role;
All four forms save a lot of typing.
All four forms save a lot of typing. Note that role support depends on
L<Role::Tiny> (2.000001+).
# use Mojo::Base -strict;
use strict;
Expand Down

0 comments on commit ff10963

Please sign in to comment.