Skip to content

Commit

Permalink
Fix the coercion syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz “tadzik” Sośnierz committed May 12, 2017
1 parent 7b7d7af commit 1f5bd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Text/T9.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ my %default-keys;
%default-keys{$_} = 9 for <w x y z>;

#= get a list of words from @words matching $input
sub t9_find_words(Int $input as Str, @words, %optkeys?) is export {
sub t9_find_words(Str(Int) $input, @words, %optkeys?) is export {
my %keys = %default-keys, %optkeys;
gather for @words -> $candidate {
next unless $input.chars == $candidate.chars;
Expand Down

0 comments on commit 1f5bd31

Please sign in to comment.