From 0acdc87ccf65925ebc4d3be951800c32dcf77abb Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Thu, 10 Sep 2015 16:19:44 +0200 Subject: [PATCH] Typo --- Doc/Sd1/languageFundamentals.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/Sd1/languageFundamentals.xml b/Doc/Sd1/languageFundamentals.xml index 44b6bc2a1..62138dcb1 100644 --- a/Doc/Sd1/languageFundamentals.xml +++ b/Doc/Sd1/languageFundamentals.xml @@ -1104,9 +1104,9 @@ System.out.println("New value=" + a);</programlisting> System.out.println(area); }</programlisting> - <para>Though there is nothing wrong with this approach but it may - be considered error prone. A careless programmer may accidentally - redefine the value of <code>pi</code>:</para> + <para>Though there is nothing wrong with this approach it actually + is error prone: A careless programmer may accidentally redefine + the value of <code>pi</code>:</para> <programlisting language="noneJava"> public static void main(String[] args) { @@ -1167,9 +1167,9 @@ System.out.println("New value=" + a);</programlisting> definition of our variable <code>area</code> to avoid erroneous redefinitions as well.</para> - <para>As a rule of thumb: Whenever you expect a variable not to - change after initial assignment use <code>final</code> to declare - it as being constant.</para> + <para>As a rule of thumb: Whenever you intend a variable not to + change after an initial assignment use <code>final</code> + declaring it to remain constant.</para> </answer> </qandaentry> </qandadiv> -- GitLab