Skip to content

Commit

Permalink
Fix some minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshikazusawa committed May 11, 2024
1 parent 894cd74 commit 95b664c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ Revision history for Path-Tiny
- The 'absolute' method now always returns an absolute path, even if a
user provided a relative path for the base path. The old, odd
behavior was documented, but people often don't read docs. The new
behavior avoids suprises.
behavior avoids surprises.

[Additions]

Expand Down Expand Up @@ -1074,7 +1074,7 @@ Revision history for Path-Tiny

[CHANGED]

- slurp/spew/etc and openr/openw/etc now repect default layers
- slurp/spew/etc and openr/openw/etc now respect default layers
set by -C or the open pragma

- spew and append can now be given array references to output
Expand Down
6 changes: 3 additions & 3 deletions lib/Path/Tiny.pm
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ sub _resolve_symlinks {
return $new;
}

sub _replacment_path {
sub _replacement_path {
my ($self) = @_;

my $unique_suffix = $$ . int( rand( 2**31 ) );
Expand Down Expand Up @@ -1022,7 +1022,7 @@ sub edit_lines {
# writing needs to follow the link and create the tempfile in the same
# dir for later atomic rename
my $resolved_path = $self->_resolve_symlinks;
my $temp = $resolved_path->_replacment_path;
my $temp = $resolved_path->_replacement_path;

my $temp_fh = $temp->filehandle( { exclusive => 1, locked => 1 }, ">", $binmode );
my $in_fh = $self->filehandle( { locked => 1 }, '<', $binmode );
Expand Down Expand Up @@ -2138,7 +2138,7 @@ sub spew {
# writing needs to follow the link and create the tempfile in the same
# dir for later atomic rename
my $resolved_path = $self->_resolve_symlinks;
my $temp = $resolved_path->_replacment_path;
my $temp = $resolved_path->_replacement_path;

my $fh;
my $ok = eval { $fh = $temp->filehandle( { exclusive => 1, locked => 1 }, ">", $binmode ); 1 };
Expand Down

0 comments on commit 95b664c

Please sign in to comment.