Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove extra spaces
worryobs() and sorryobs() throw X::Obsolete which already puts a
space before $.when in the message.
  • Loading branch information
perlpilot committed Sep 2, 2014
1 parent 69d7051 commit 83a5f52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Grammar.nqp
Expand Up @@ -260,14 +260,14 @@ role STD {
method obsvar($name) {
$*W.throw(self.MATCH(), ['X', 'Syntax', 'Perl5Var'], :$name);
}
method sorryobs($old, $new, $when = ' in Perl 6') {
method sorryobs($old, $new, $when = 'in Perl 6') {
$*W.throw(self.MATCH(), ['X', 'Obsolete'],
old => $old,
replacement => $new,
when => $when,
);
}
method worryobs($old, $new, $when = ' in Perl 6') {
method worryobs($old, $new, $when = 'in Perl 6') {
$*W.throw(self.MATCH(), ['X', 'Obsolete'],
old => $old,
replacement => $new,
Expand Down

0 comments on commit 83a5f52

Please sign in to comment.