Skip to content

Commit 5c0315e

Browse files
committed
note about Option(null) != Some(null)
1 parent a29722f commit 5c0315e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

_cheatsheets/index.md

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

0 commit comments

Comments
 (0)