summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pod/perldiag.pod2
-rw-r--r--toke.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index a08837d94f..3da728d06a 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -1844,7 +1844,7 @@ C<{}> from your ending C<\x{}> - C<\x> without the curly braces can go only
up to C<ff>. The <-- HERE shows in the regular expression about where the
problem was discovered. See L<perlre>.
-=item Invalid [] range "%s" in transliteration operator
+=item Invalid range "%s" in transliteration operator
(F) The range specified in the tr/// or y/// operator had a minimum
character greater than the maximum character. See L<perlop>.
diff --git a/toke.c b/toke.c
index e747a2d3c1..21632110ba 100644
--- a/toke.c
+++ b/toke.c
@@ -1273,7 +1273,7 @@ S_scan_const(pTHX_ char *start)
if (min > max) {
Perl_croak(aTHX_
- "Invalid [] range \"%c-%c\" in transliteration operator",
+ "Invalid range \"%c-%c\" in transliteration operator",
(char)min, (char)max);
}