diff options
author | Karl Williamson <khw@cpan.org> | 2020-04-01 05:46:43 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-04-02 09:17:38 -0600 |
commit | 8bbdcb372d98806ff15f6de9ae9f263b85265432 (patch) | |
tree | 068b8df4cf5c3a22036bf92d2b7d8f8a94fe2b97 | |
parent | 846046eca0411838e7ca44c7c291c9b42b1c402e (diff) | |
download | perl-8bbdcb372d98806ff15f6de9ae9f263b85265432.tar.gz |
doop.c: Fix typo in comment; add comment
-rw-r--r-- | doop.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |