summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2019-10-19 15:36:30 +0200
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2019-10-21 12:19:41 +0200
commiteeaa50cc8bee7e926cf76d8fc4a212cc36fad252 (patch)
treedff179e87a9639674da2993d9d6b741283e0be6f /pad.c
parent5015bd0bb5ee7e0fa1ede1669bdfcd7bb5f10ebd (diff)
downloadperl-eeaa50cc8bee7e926cf76d8fc4a212cc36fad252.tar.gz
Fully spell out "subroutine" and "variable"
A bunch of places were using "%se" and "subroutin" or "variabl" when generating error messages that could refer to either a subroutine or variable. Spell the words out and use plain "%s" instead.
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pad.c b/pad.c
index 7854678928..7a03be1f87 100644
--- a/pad.c
+++ b/pad.c
@@ -1086,10 +1086,10 @@ S_unavailable(pTHX_ PADNAME *name)
{
/* diag_listed_as: Variable "%s" is not available */
Perl_ck_warner(aTHX_ packWARN(WARN_CLOSURE),
- "%se \"%" PNf "\" is not available",
+ "%s \"%" PNf "\" is not available",
*PadnamePV(name) == '&'
- ? "Subroutin"
- : "Variabl",
+ ? "Subroutine"
+ : "Variable",
PNfARG(name));
}
@@ -1205,8 +1205,8 @@ S_pad_findlex(pTHX_ const char *namepv, STRLEN namelen, U32 flags, const CV* cv,
/* diag_listed_as: Variable "%s" will not stay
shared */
Perl_warner(aTHX_ packWARN(WARN_CLOSURE),
- "%se \"%" UTF8f "\" will not stay shared",
- *namepv == '&' ? "Subroutin" : "Variabl",
+ "%s \"%" UTF8f "\" will not stay shared",
+ *namepv == '&' ? "Subroutine" : "Variable",
UTF8fARG(1, namelen, namepv));
}