summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-04-01 05:46:43 -0600
committerKarl Williamson <khw@cpan.org>2020-04-02 09:17:38 -0600
commit8bbdcb372d98806ff15f6de9ae9f263b85265432 (patch)
tree068b8df4cf5c3a22036bf92d2b7d8f8a94fe2b97 /doop.c
parent846046eca0411838e7ca44c7c291c9b42b1c402e (diff)
downloadperl-8bbdcb372d98806ff15f6de9ae9f263b85265432.tar.gz
doop.c: Fix typo in comment; add comment
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/doop.c b/doop.c
index c7656bc561..267b640f4d 100644
--- a/doop.c
+++ b/doop.c
@@ -467,8 +467,9 @@ S_do_trans_invmap(pTHX_ SV * const sv, AV * const invmap)
else {
/* Here, we can't edit in place. We have no idea how much, if any,
* this particular input string will grow. However, the compilation
- * calculated the maximum expansion possible. Use that to allocale
- * based on the worst case scenario. */
+ * calculated the maximum expansion possible. Use that to allocate
+ * based on the worst case scenario. (First +1 is to round up; 2nd is
+ * for \0) */
Newx(d, (STRLEN) (len * max_expansion + 1 + 1), U8);
d0 = d;
}