aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClay Murphy <claym@google.com>2013-05-30 18:14:34 -0700
committerClay Murphy <claym@google.com>2013-05-30 18:14:34 -0700
commit07c3d6417043babe736c2e933a0640d895de7ddc (patch)
tree8d485048db59b8c07a1913ffcac11257feeb91c5
parent2771e274b74dfe7ddd7a909e5de8207cb8cd393a (diff)
downloadsource.android.com-07c3d6417043babe736c2e933a0640d895de7ddc.tar.gz
docs: Adding missing open bracket in loop example.
Bug: 8981302 Change-Id: I58d8c6754a99b80e5eabaa8ca871683e9a77b79f
-rw-r--r--src/source/code-style.jd4
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>