ES.2: Fix wrong code logic in the example (#1999)

This commit is contained in:
Wu Yongwei
2022-11-27 12:30:16 +08:00
committed by GitHub
parent cf3eacad1a
commit efc6f6eabe

View File

@@ -10269,7 +10269,7 @@ The more traditional and lower-level near-equivalent is longer, messier, harder
is.read(s, maxstring); is.read(s, maxstring);
res[elemcount++] = s; res[elemcount++] = s;
} }
nread = &elemcount; *nread = elemcount;
return res; return res;
} }