Skip to content

Commit

Permalink
Make optional instead of default undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
CurtTilmes committed Jul 10, 2017
1 parent 679847a commit cbc1f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Compress/Snappy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ multi compress(Str $str, Str $encoding = 'utf-8') returns Buf {
return compress($str.encode($encoding));
}

our sub decompress(Blob $blob, Str $encoding = Str) {
our sub decompress(Blob $blob, Str $encoding?) {
# Allocate an int pointer to store the length
my size_t $uncompressed-length;

Expand Down

0 comments on commit cbc1f22

Please sign in to comment.