Skip to content

Commit 6e0a5b8

Browse files
committed
Hopefully fix htmlify on newest rakudo
since [0]-indexing is a noop on type Any, it should work with the old rakudo too
1 parent 49fc1c4 commit 6e0a5b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

htmlify.p6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ sub extract-pod(IO() $file) {
163163
use nqp;
164164
# The file name is enough for the id because POD files don't have depends
165165
my $id = nqp::sha1(~$file);
166-
my $handle = $precomp.load($id,:since($file.modified));
166+
my $handle = $precomp.load($id,:since($file.modified))[0];
167167

168168
if not $handle {
169169
# precompile it
170170
$precomp.precompile($file, $id);
171-
$handle = $precomp.load($id);
171+
$handle = $precomp.load($id)[0];
172172
}
173173

174174
return nqp::atkey($handle.unit,'$=pod')[0];

0 commit comments

Comments
 (0)