+2007-03-26 Darin Adler <darin@apple.com>
+
+ * coding/coding-style.html: Let's misquote George Orwell: "Wrong is right. Right is wrong."
+
2007-03-25 Darin Adler <darin@apple.com>
* coding/coding-style.html: Put !important on right/wrong colors so they override the
</li>
<li>In an implementation file, code inside a namespace should <em>not</em> be indented.
-<h4 class="wrong">Right:</h4>
+<h4 class="right">Right:</h4>
<pre class="code">
// Document.cpp
namespace WebCore {
i++;
</pre>
-<h4 class="right">Wrong:</h4>
+<h4 class="wrong">Wrong:</h4>
<pre class="code">
i ++;
</pre>
return condition ? 1 : 0;
</pre>
-<h4 class="right">Wrong:</h4>
+<h4 class="wrong">Wrong:</h4>
<pre class="code">
y=m*x+b;
f(a,b);
doIt();
</pre>
-<h4 class="right">Wrong:</h4>
+<h4 class="wrong">Wrong:</h4>
<pre class="code">
if(condition)
doIt();
f(a, b);
</pre>
-<h4 class="right">Wrong:</h4>
+<h4 class="wrong">Wrong:</h4>
<pre class="code">
f (a, b);
f( a, b );
};
</pre>
<li>One-line control clauses should not use braces
-<h4 class="wrong">Right:</h4>
+<h4 class="right">Right:</h4>
<pre class="code">
if (condition)
doIt();