Add missing != null operator

This commit is contained in:
Piotr Szlachciak 2024-01-16 18:50:47 +01:00 committed by Veikka Tuominen
parent f3353708d8
commit 6a3f9a0b50

View file

@ -2199,7 +2199,7 @@ unwrapped == 1234{#endsyntax#}</pre>
</td> </td>
<td> <td>
<pre>{#syntax#}const value: ?u32 = null; <pre>{#syntax#}const value: ?u32 = null;
value == null{#endsyntax#}</pre> (value == null) == true{#endsyntax#}</pre>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -2220,6 +2220,21 @@ value == null{#endsyntax#}</pre>
<pre>{#syntax#}(1 != 1) == false{#endsyntax#}</pre> <pre>{#syntax#}(1 != 1) == false{#endsyntax#}</pre>
</td> </td>
</tr> </tr>
<tr>
<th scope="row"><pre>{#syntax#}a != null{#endsyntax#}</pre></th>
<td>
<ul>
<li>{#link|Optionals#}</li>
</ul>
</td>
<td>
Returns {#syntax#}false{#endsyntax#} if a is {#syntax#}null{#endsyntax#}, otherwise returns {#syntax#}true{#endsyntax#}.
</td>
<td>
<pre>{#syntax#}const value: ?u32 = null;
(value != null) == false{#endsyntax#}</pre>
</td>
</tr>
<tr> <tr>
<th scope="row"><pre>{#syntax#}a > b{#endsyntax#}</pre></th> <th scope="row"><pre>{#syntax#}a > b{#endsyntax#}</pre></th>
<td> <td>