bug fix for empty table constructors with &default attributes (plus a typo)

This commit is contained in:
Vern Paxson 2022-03-31 19:28:23 -07:00
parent aa8f11fa17
commit 18fe9d84f6
2 changed files with 9 additions and 1 deletions

View file

@ -935,7 +935,7 @@ public:
void InitTimer(double delay);
void DoExpire(double t);
// If the &default attribute is not a function, or the functon has
// If the &default attribute is not a function, or the function has
// already been initialized, this does nothing. Otherwise, evaluates
// the function in the frame allowing it to capture its closure.
void InitDefaultFunc(detail::Frame* f);