浏览代码

Simplify the array initialization example.

Martijn Laan 6 年之前
父节点
当前提交
3bb5c42e3d
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Projects/ISPP/Help/ispp.xml
  2. 1 1
      whatsnew.htm

+ 1 - 1
Projects/ISPP/Help/ispp.xml

@@ -188,7 +188,7 @@
 						<line>#redim MyArray[20]</line>
 						<line>#redim MyArray[20]</line>
 						<line>#define MyArray[10] 30</line>
 						<line>#define MyArray[10] 30</line>
 						<line>#redim MyArray[10]</line>
 						<line>#redim MyArray[10]</line>
-						<line>#dim MyArray2[3] {1, '2', 3}</line>
+						<line>#dim MyArray2[3] {1, 2, 3}</line>
 					</pre>
 					</pre>
 				</section>
 				</section>
 				<section title="See also">
 				<section title="See also">

+ 1 - 1
whatsnew.htm

@@ -40,7 +40,7 @@ For conditions of distribution and use, see <a href="http://www.jrsoftware.org/f
   </li>
   </li>
   <li>Inno Setup Preprocessor (ISPP) changes:
   <li>Inno Setup Preprocessor (ISPP) changes:
   <ul>
   <ul>
-    <li>Array variables declared with <tt>#dim</tt> can now be initialized directly, like <tt>#dim MyArray[3] {1, &apos;2&apos;, 3}</tt> for example.</li>
+    <li>Array variables declared with <tt>#dim</tt> can now be initialized directly, like <tt>#dim MyArray[3] {1, 2, 3}</tt> for example.</li>
     <li>Added new predefined variable <tt>Tab</tt>.</li>
     <li>Added new predefined variable <tt>Tab</tt>.</li>
   </ul>
   </ul>
   </li>
   </li>