Skip to content

Commit 77be84d

Browse files
committed
Set and array containers don't mix so well
1 parent fdbd478 commit 77be84d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/list-missing-methods.p6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ sub MAIN($source-path = './doc/Type/', Str :$exclude = ".git") {
5050

5151
my \matched-methods := gather for methods -> ($type-name, $path, @expected-methods) {
5252
my @found-methods = ($path.slurp ~~ m:g/'Defined as:' \s+ method \s (<[-'\w]>+)/)».[0];
53-
my @missing-methods = @expected-methods (-) @found-methods».Str;
53+
my Set $missing-methods = @expected-methods (-) @found-methods».Str;
5454
# dd @missing-methods, @expected-methods, @found-methods».Str;
55-
take ($type-name, $path, @missing-methods)
55+
take ($type-name, $path, $missing-methods) if $missing-methods
5656
}
5757

5858
.&destructure-fmt("Type: %s, File: ⟨%s\n%s\n").say for matched-methods;

0 commit comments

Comments
 (0)