From 07c3d6417043babe736c2e933a0640d895de7ddc Mon Sep 17 00:00:00 2001 From: Clay Murphy Date: Thu, 30 May 2013 18:14:34 -0700 Subject: docs: Adding missing open bracket in loop example. Bug: 8981302 Change-Id: I58d8c6754a99b80e5eabaa8ca871683e9a77b79f --- src/source/code-style.jd | 4 ++-- 1 file 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));

Loop variables should be declared in the for statement itself unless there is a compelling reason to do otherwise:

-
for (int i = 0; i n; i++) {
+
for (int i = 0; i < n; i++) {
     doSomething(i);
 }
 
@@ -735,4 +735,4 @@ void testIsDistinguishable_protanopia() { assertFalse(colorMatcher.isDistinguishable(Color.RED, Color.BLACK)) assertTrue(colorMatcher.isDistinguishable(Color.X, Color.Y)) } -
\ No newline at end of file + -- cgit v1.2.3