Skip to content

Commit fc2c865

Browse files
committed
note about foreach returning Unit
1 parent 3da6154 commit fc2c865

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_overviews/cheatsheets/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,9 @@ println(upper.getOrElse(""))</code></pre></td>
482482
<pre class="highlight"><code>option match {
483483
case Some(x) =&gt; f(x)
484484
case None =&gt; ()
485-
}</code></pre></td>
486-
<td>Apply a procedure on optional value</td>
485+
}
486+
()</code></pre></td>
487+
<td>Apply a procedure on optional value. Returns <code>Unit</code></td>
487488
</tr>
488489
<tr>
489490
<td><pre class="highlight"><code>option.fold(y)(f(_))</code></pre>

0 commit comments

Comments
 (0)