mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Add missing != null operator
This commit is contained in:
parent
f3353708d8
commit
6a3f9a0b50
1 changed files with 16 additions and 1 deletions
|
|
@ -2199,7 +2199,7 @@ unwrapped == 1234{#endsyntax#}</pre>
|
|||
</td>
|
||||
<td>
|
||||
<pre>{#syntax#}const value: ?u32 = null;
|
||||
value == null{#endsyntax#}</pre>
|
||||
(value == null) == true{#endsyntax#}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -2220,6 +2220,21 @@ value == null{#endsyntax#}</pre>
|
|||
<pre>{#syntax#}(1 != 1) == false{#endsyntax#}</pre>
|
||||
</td>
|
||||
</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>
|
||||
<th scope="row"><pre>{#syntax#}a > b{#endsyntax#}</pre></th>
|
||||
<td>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue