Skip to content

Commit f67f26d

Browse files
committed
add note about procedure syntax been deprecated in 2.13
1 parent e212ccc commit f67f26d

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 procedure returning <code>Unit</code>; causes havoc.</td>
45+
<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>
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)