Skip to content

Commit 54ac05f

Browse files
committed
remove returning Unit in the end of foreach example
1 parent a8d1dbc commit 54ac05f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_overviews/cheatsheets/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,7 @@ println(upper.getOrElse(""))</code></pre></td>
477477
<pre class="highlight"><code>option match {
478478
case Some(x) =&gt; f(x)
479479
case None =&gt; ()
480-
}
481-
()</code></pre></td>
480+
}</code></pre></td>
482481
<td>Apply a procedure on optional value. Returns <code>Unit</code>.</td>
483482
</tr>
484483
<tr>

0 commit comments

Comments
 (0)