Skip to content

Commit e212ccc

Browse files
committed
remove returning Unit in the end of foreach example
1 parent 295b136 commit e212ccc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_cheatsheets/index.md

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

0 commit comments

Comments
 (0)