Skip to content

Commit 3da6154

Browse files
committed
note about Option(null) != Some(null)
1 parent ba02404 commit 3da6154

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

_overviews/cheatsheets/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,10 @@ breakable {
414414
</tr>
415415
<tr>
416416
<td><pre class="highlight"><code>Option(null) == None
417-
Option(obj.unsafeMethod)</code></pre></td>
417+
Option(obj.unsafeMethod)</code></pre>
418+
<em><strong>but</strong></em>
419+
<pre class="highlight"><code>Some(null) != None</code></pre>
420+
</td>
418421
<td>Null-safe optional value factory.</td>
419422
</tr>
420423
<tr>

0 commit comments

Comments
 (0)