Skip to content

Commit

Permalink
Improve CUR::FileSystem example
Browse files Browse the repository at this point in the history
Fixes #2766
  • Loading branch information
lizmat committed May 10, 2019
1 parent c9b99f3 commit 786ca5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/Type/CompUnit/Repository/FileSystem.pod6
Expand Up @@ -27,8 +27,12 @@ C<ver>, and C<api>.
# assuming one is cloned into the zef git repository...
my $repo = CompUnit::Repository::FileSystem.new(prefix => $*CWD);
my $dist = $repo.candidates("Zef").head;
say "Zef version: " ~ $dist.meta<version>;
with $repo.candidates("Zef").head -> $dist {
say "Zef version: " ~ $dist.meta<version>;
}
else {
say "No candidates for 'Zef' found";
}
=head2 method files
Expand Down

0 comments on commit 786ca5a

Please sign in to comment.