diff options
Diffstat (limited to 'src/source/code-style.jd')
-rw-r--r-- | src/source/code-style.jd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/source/code-style.jd b/src/source/code-style.jd index e371aa72..bb633fbe 100644 --- a/src/source/code-style.jd +++ b/src/source/code-style.jd @@ -320,7 +320,7 @@ s.addAll(Arrays.asList(args)); </code></pre> <p>Loop variables should be declared in the for statement itself unless there is a compelling reason to do otherwise:</p> -<pre><code>for (int i = 0; i n; i++) { +<pre><code>for (int i = 0; i < n; i++) { doSomething(i); } </code></pre> @@ -735,4 +735,4 @@ void testIsDistinguishable_protanopia() { assertFalse(colorMatcher.isDistinguishable(Color.RED, Color.BLACK)) assertTrue(colorMatcher.isDistinguishable(Color.X, Color.Y)) } -</code></pre>
\ No newline at end of file +</code></pre> |