Skip to content

Commit 5d931c4

Browse files
committed
add note about procedure syntax been deprecated in 2.13
1 parent 54ac05f commit 5d931c4

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 procedure returning <code>Unit</code>; causes havoc.</td>
46+
<td>Define function.<br />Hidden error: without <code>=</code> it’s a procedure returning <code>Unit</code>; causes havoc. <a href="https://github.com/scala/scala/pull/6325">Deprecated</a> in Scala 2.13.</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)