summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-11-29 22:43:15 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-11-29 22:43:15 -0800
commitf52337cfba08c2d05a6207cdbb890803491547fd (patch)
tree59dc458195baad0ffba567fac91ce9fd48a661b6 /hv.c
parente0eb33797bd13dd0749017753d6e3b26dd9f3db9 (diff)
downloadperl-f52337cfba08c2d05a6207cdbb890803491547fd.tar.gz
Correct comment in hv.c:S_share_hek_flags
It says that allocate one block of memory with the HEK immediately following the HE, so we can find the HEK from the HE. Of course we can find the HEK from the HE, as the HE points to it. The two terms were apparently transposed.
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv.c b/hv.c
index 4920af39d3..1019b31d15 100644
--- a/hv.c
+++ b/hv.c
@@ -2735,7 +2735,7 @@ S_share_hek_flags(pTHX_ const char *str, I32 len, register U32 hash, int flags)
/* We don't actually store a HE from the arena and a regular HEK.
Instead we allocate one chunk of memory big enough for both,
and put the HEK straight after the HE. This way we can find the
- HEK directly from the HE.
+ HE directly from the HEK.
*/
Newx(k, STRUCT_OFFSET(struct shared_he,