File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ permalink: /cheatsheets/index.html
43
43
</tr>
44
44
<tr>
45
45
<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>
47
47
</tr>
48
48
<tr>
49
49
<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>
You can’t perform that action at this time.
0 commit comments