Skip to content
Permalink
Browse files

Make sure Str.Lines iterator has correct bool-only semantics

  • Loading branch information...
lizmat committed Sep 8, 2018
1 parent 6977973 commit 64ddacab8f8eaad7ff6bf866ec13816212492a8f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Str.pm6
@@ -1348,7 +1348,7 @@ my class Str does Stringy { # declared in BOOTSTRAP
$seen
}
method bool-only(--> Bool:D) {
nqp::p6bool($!chars)
nqp::p6bool(nqp::islt_i($!pos,$!chars))
}
}
multi method lines(Str:D:) { Seq.new(Lines.new(self)) }

0 comments on commit 64ddaca

Please sign in to comment.
You can’t perform that action at this time.