Skip to content

Commit 231d404

Browse files
committed
fix weird looking <code>Unit</code>-returning
1 parent d3dcaf9 commit 231d404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/cheatsheets/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ permalink: /cheatsheets/index.html
4343
</tr>
4444
<tr>
4545
<td><span class="label success">Good</span><br> <pre class="highlight"><code>def f(x: Int) = { x * x }</code></pre><br /> <span class="label important">Bad</span><br> <pre class="highlight"><code>def f(x: Int) { x * x }</code></pre></td>
46-
<td>Define function.<br />Hidden error: without <code>=</code> it’s a <code>Unit</code>-returning procedure; causes havoc.</td>
46+
<td>Define function.<br />Hidden error: without <code>=</code> it’s a procedure returning <code>Unit</code>; causes havoc.</td>
4747
</tr>
4848
<tr>
4949
<td><span class="label success">Good</span><br> <pre class="highlight"><code>def f(x: Any) = println(x)</code></pre><br /> <span class="label important">Bad</span><br> <pre class="highlight"><code>def f(x) = println(x)</code></pre></td>

0 commit comments

Comments
 (0)