From: Iain Truskett Date: Thu, 3 Jul 2003 12:40:42 +0000 (+1000) Subject: "without parens" vs "without parentheses" X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2d5ccbbaf6e451d3cdfd3aaf9891805bd0206665;p=p5sagit%2Fp5-mst-13.2.git "without parens" vs "without parentheses" Message-ID: <20030703024042.GI12380@ouroboros.anu.edu.au> p4raw-id: //depot/perl@19944 --- diff --git a/t/lib/warnings/toke b/t/lib/warnings/toke index ca0dc6e..b2c15ba 100644 --- a/t/lib/warnings/toke +++ b/t/lib/warnings/toke @@ -570,7 +570,7 @@ yelp at foo line 30. # toke.c my $a = rand + 4 ; EXPECT -Warning: Use of "rand" without parens is ambiguous at - line 2. +Warning: Use of "rand" without parentheses is ambiguous at - line 2. ######## # toke.c $^W = 0 ; @@ -583,9 +583,9 @@ my $a = rand + 4 ; } $a = rand + 4 ; EXPECT -Warning: Use of "rand" without parens is ambiguous at - line 3. -Warning: Use of "rand" without parens is ambiguous at - line 8. -Warning: Use of "rand" without parens is ambiguous at - line 10. +Warning: Use of "rand" without parentheses is ambiguous at - line 3. +Warning: Use of "rand" without parentheses is ambiguous at - line 8. +Warning: Use of "rand" without parentheses is ambiguous at - line 10. ######## # toke.c sub fred {}; diff --git a/toke.c b/toke.c index d57dc0c..bac0380 100644 --- a/toke.c +++ b/toke.c @@ -682,7 +682,7 @@ S_check_uni(pTHX) char ch = *s; *s = '\0'; Perl_warner(aTHX_ packWARN(WARN_AMBIGUOUS), - "Warning: Use of \"%s\" without parens is ambiguous", + "Warning: Use of \"%s\" without parentheses is ambiguous", PL_last_uni); *s = ch; }