Skip to content

Commit

Permalink
forgot two examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 5, 2017
1 parent d815ed2 commit 789b94c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/File.pm
Expand Up @@ -184,7 +184,7 @@ Construct a new scalar-based L<Mojo::File> object for a temporary directory with
L<File::Temp>.
# Longer version
my $path = Mojo::File->new(File::Temp->newdir('tempXXXXX'));
my $path = path(File::Temp->newdir('tempXXXXX'));
=head2 tempfile
Expand All @@ -195,7 +195,7 @@ Construct a new scalar-based L<Mojo::File> object for a temporary file with
L<File::Temp>.
# Longer version
my $path = Mojo::File->new(File::Temp->new(DIR => '/tmp'));
my $path = path(File::Temp->new(DIR => '/tmp'));
=head1 METHODS
Expand Down

0 comments on commit 789b94c

Please sign in to comment.