Skip to content

Commit 05626b9

Browse files
committed
fix weird looking <code>Unit</code>-returning
1 parent 397aaa0 commit 05626b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_cheatsheets/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ languages: [ba, fr, ja, pl, pt-br, zh-cn, th, ru]
4242
</tr>
4343
<tr>
4444
<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>
45-
<td>Define function.<br />Hidden error: without <code>=</code> it’s a <code>Unit</code>-returning procedure; causes havoc.</td>
45+
<td>Define function.<br />Hidden error: without <code>=</code> it’s a procedure returning <code>Unit</code>; causes havoc.</td>
4646
</tr>
4747
<tr>
4848
<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)