Skip to content

Commit ba02404

Browse files
committed
note about import scala.language.postfixOps
1 parent 2cbf40a commit ba02404

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
@@ -71,7 +71,7 @@ permalink: /cheatsheets/index.html
7171
</tr>
7272
<tr>
7373
<td><span class="label success">Good</span><br> <pre class="highlight"><code>(1 to 5).map(2 *)</code></pre><br /> <span class="label important">Bad</span><br> <pre class="highlight"><code>(1 to 5).map(* 2)</code></pre></td>
74-
<td>anonymous function: bound infix method.<br /> Use <code class="highlighter-rouge">2 * _</code> for sanity’s sake instead.</td>
74+
<td>anonymous function: bound infix method.<br /> Use <code class="highlighter-rouge">2 * _</code> for sanity’s sake instead.<br />Will require <code>import scala.language.postfixOps</code> in the future.</td>
7575
</tr>
7676
<tr>
7777
<td><pre class="highlight"><code>(1 to 5).map { x =&gt;

0 commit comments

Comments
 (0)