diff --git a/Changes b/Changes index 5f974e9..483365f 100644 --- a/Changes +++ b/Changes @@ -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] @@ -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 diff --git a/lib/Path/Tiny.pm b/lib/Path/Tiny.pm index fe8c4bf..b721f78 100644 --- a/lib/Path/Tiny.pm +++ b/lib/Path/Tiny.pm @@ -508,7 +508,7 @@ sub _resolve_symlinks { return $new; } -sub _replacment_path { +sub _replacement_path { my ($self) = @_; my $unique_suffix = $$ . int( rand( 2**31 ) ); @@ -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 ); @@ -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 };