Skip to content

Commit 59eff62

Browse files
committed
avoid deprecated .exists method
1 parent a94bbe0 commit 59eff62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Perl6/Documentable/Registry.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Perl6::Documentable::Registry {
1919
%!grouped-by{$what} ||= @!documentables.classify(*."$what"());
2020
}
2121
method lookup(Str $what, Str :$by!) {
22-
unless %!cache.exists($by) {
22+
unless %!cache{$by}:exists {
2323
for @!documentables -> $d {
2424
%!cache{$by}{$d."$by"()}.push: $d;
2525
}

0 commit comments

Comments
 (0)