From 7d4b61fbe35a7068c672e258f24607e9edc06262 Mon Sep 17 00:00:00 2001
From: Martin Goik <goik@hdm-stuttgart.de>
Date: Mon, 30 Oct 2017 19:03:50 +0100
Subject: [PATCH] Bug Fix 2 x "int i"

---
 Doc/Sd1/statements.xml | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/Doc/Sd1/statements.xml b/Doc/Sd1/statements.xml
index de5941ff6..ac750d0c0 100644
--- a/Doc/Sd1/statements.xml
+++ b/Doc/Sd1/statements.xml
@@ -1999,16 +1999,16 @@ while (i &lt; 5 <coref linkend="sd1_callout_for-2-co"/>) {
     System.out.println(i);
 }
 
-System.out.println(i); <emphasis role="bold">// Error: i undefined    </emphasis></programlisting></td>
+System.out.println(i); <emphasis role="bold">// Error: i undefined       </emphasis></programlisting></td>
 
             <td><programlisting language="java">int i; <co
                   linkends="sd1_callout_forVariableScope-2"
                   xml:id="sd1_callout_forVariableScope-2-co"/>
-for (int i = 0; i &lt; 3; i++) {
+for (i = 0; i &lt; 3; i++) {     
     System.out.println(i);
 }
 
-System.out.println(i); // o.K.    </programlisting></td>
+System.out.println(i); // o.K.     </programlisting></td>
           </tr>
         </informaltable>
 
@@ -2031,7 +2031,7 @@ System.out.println(i); // o.K.    </programlisting></td>
 
         <informaltable border="1">
           <tr>
-            <td><programlisting language="java">for (int i = 0 ; i &lt; 3; i++) {   
+            <td><programlisting language="java">for (int i = 0 ; i &lt; 3; i++) {     
     System.out.println(i);
 }
 
@@ -2040,7 +2040,7 @@ System.out.println(i); // o.K.    </programlisting></td>
             <td><programlisting language="java">{ // Beginning block scope
   int i = 0;
   for (; i &lt; 3; i++) { 
-    System.out.println(i);    
+    System.out.println(i);      
   }
 } // Ending block scope
 
@@ -2158,6 +2158,20 @@ while (i &lt; limit) {
 5 6 7 8 9   </screen></td>
           </tr>
         </informaltable>
+
+        <tip>
+          <para>Consider renaming:</para>
+
+          <itemizedlist>
+            <listitem>
+              <para><code>i</code> to <code>row</code></para>
+            </listitem>
+
+            <listitem>
+              <para><code>j</code> to <code>column</code></para>
+            </listitem>
+          </itemizedlist>
+        </tip>
       </figure>
 
       <qandaset defaultlabel="qanda" xml:id="sd1QandaXmasTree">
-- 
GitLab