Skip to content

Commit

Permalink
Make .range consistently a Str
Browse files Browse the repository at this point in the history
It's given as a Str in all the other instances in the setting and
defaults to Str "<unknown>"
  • Loading branch information
zoffixznet committed Jan 18, 2018
1 parent 14c28ca commit 90246e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Range.pm
Expand Up @@ -708,7 +708,7 @@ my class Range is Cool does Iterable does Positional {

method in-range($got, $what?) {
self.ACCEPTS($got)
|| X::OutOfRange.new(:what($what // 'Value'),:got($got.perl),:range(self)).throw
|| X::OutOfRange.new(:what($what // 'Value'),:got($got.perl),:range(self.gist)).throw
}

multi method minmax(Range:D:) {
Expand Down

0 comments on commit 90246e6

Please sign in to comment.