Skip to content

Commit

Permalink
IO::Handle.seek is documented as returning True
Browse files Browse the repository at this point in the history
It was however returning Mu.  No tests were hurt during this modification.
  • Loading branch information
lizmat committed Apr 27, 2018
1 parent 7847768 commit 24a9077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO/Handle.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ my class IO::Handle {
}

proto method seek(|) {*}
multi method seek(IO::Handle:D: Int:D $offset, SeekType:D $whence = SeekFromBeginning) {
multi method seek(IO::Handle:D: Int:D $offset, SeekType:D $whence = SeekFromBeginning --> True) {
my int $rewind = 0;
if $!decoder {
# consider bytes we pre-read, when seeking from current position:
Expand Down

0 comments on commit 24a9077

Please sign in to comment.