aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClay Murphy <claym@google.com>2013-05-31 01:39:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-05-31 01:39:23 +0000
commitf413a9e51541808223f163d8058b57784d0485bc (patch)
treec3b981eb16bf7e27e3e9650b464710836ffd5b12
parentf965cd7d98021d3feab75debff2499f043eeab47 (diff)
parent07c3d6417043babe736c2e933a0640d895de7ddc (diff)
downloadsource.android.com-f413a9e51541808223f163d8058b57784d0485bc.tar.gz
Merge "docs: Adding missing open bracket in loop example. Bug: 8981302" into jb-mr2-dev
-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>