Skip to content

Commit

Permalink
Fix interpolation
Browse files Browse the repository at this point in the history
Avoid interpreting the literal < as an index of the variable.
  • Loading branch information
coke committed Mar 16, 2023
1 parent 6ac220d commit 814fd3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xt/rakudoc-types.rakutest
Expand Up @@ -80,7 +80,7 @@ sub is-valid-type($node, $parent, $file) {
if $node.type ne 'C' or $type ne $type-colon {
flunk "{render-node($node)} should be C<$type-colon> - self reference";
} elsif $parent ~~ Pod::FormattingCode {
flunk "$parent.type<{render-node($node)}> should be C<$type> - bad parent FormattingCode - self reference";
flunk "{$parent.type}<{render-node($node)}> should be C<$type> - bad parent FormattingCode - self reference";
} else {
pass "{render-node($node)} OK - self reference";
}
Expand Down

0 comments on commit 814fd3a

Please sign in to comment.