Commit 0c56ca9
committed
perlapi - HeVAL operates on HEs, not HVs
The _perlapi_ example for `HeVAL` is misleading/confusing.
Instead of:
SV *foo= HeVAL(hv);
HeVAL(hv)= sv;
It should read:
SV *foo= HeVAL(he);
HeVAL(he)= sv;
Rationale: `hv` is the variable name commonly given to a `HV*`,
`he` is a logical name to give a `HE*`. `HeVAL` operates on the latter.1 parent a285955 commit 0c56ca9
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
| 249 | + | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
0 commit comments