Skip to content

Commit

Permalink
Merge pull request #1484 from szabgab/patch-1
Browse files Browse the repository at this point in the history
fix typo in code example
  • Loading branch information
ferki committed Jun 19, 2021
2 parents a132438 + b86aef1 commit fa11474
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Rex.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ versions are activated. Available since version 0.56.
=item autodie
Will enable autodie feature: die on all failed L<filesytem commands|https://metacpan.org/pod/Rex::Commands::Fs>. Available since version 1.13.1.
Will enable autodie feature: die on all failed L<filesystem commands|https://metacpan.org/pod/Rex::Commands::Fs>. Available since version 1.13.1.
=item 0.55
Expand Down
6 changes: 3 additions & 3 deletions lib/Rex/Commands.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1584,17 +1584,17 @@ sub last_command_output {
This is a function to compare a string with some given options.
task "mytask", "myserver", sub {
my $ntp_service = case operating_sytem, {
my $ntp_service = case operating_system, {
Debian => "ntp",
default => "ntpd",
};
my $ntp_service = case operating_sytem, {
my $ntp_service = case operating_system, {
qr{debian}i => "ntp",
default => "ntpd",
};
my $ntp_service = case operating_sytem, {
my $ntp_service = case operating_system, {
qr{debian}i => "ntp",
default => sub { return "foo"; },
};
Expand Down

0 comments on commit fa11474

Please sign in to comment.