瀏覽代碼

Avoid the term "undefined behavior" in the manual

Roberto Ierusalimschy 4 年之前
父節點
當前提交
c0ed74c1e1
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      manual/manual.of

+ 2 - 3
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,
 (To traverse a table in numerical order,
 use a numerical @Rw{for}.)
 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.
 You may however modify existing fields.
 In particular, you may set existing fields to nil.
 In particular, you may set existing fields to nil.