lua

A copy of the Lua development repository
Log | Files | Refs | README

commit c0ed74c1e130aa6d80e5ffc7b6e32b433aca1765
parent fc6c74f1004b5f67d0503633ddb74174a3c8d6ad
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed,  9 Jun 2021 13:24:22 -0300

Avoid the term "undefined behavior" in the manual

Diffstat:
Mmanual/manual.of | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/manual/manual.of b/manual/manual.of @@ -6365,9 +6365,8 @@ The order in which the indices are enumerated is not specified, (To traverse a table in numerical order, use a numerical @Rw{for}.) -The behavior of @id{next} is undefined if, -during the traversal, -you assign any value to a non-existent field in the table. +You should not assign any value to a non-existent field in a table +during its traversal. You may however modify existing fields. In particular, you may set existing fields to nil.