From 6a3f9a0b50d989f5591a55424a328e3ef93c7e9c Mon Sep 17 00:00:00 2001 From: Piotr Szlachciak Date: Tue, 16 Jan 2024 18:50:47 +0100 Subject: [PATCH] Add missing != null operator --- doc/langref.html.in | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 300a21fc10..d20b9d4d5b 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -2199,7 +2199,7 @@ unwrapped == 1234{#endsyntax#}
{#syntax#}const value: ?u32 = null;
-value == null{#endsyntax#}
+(value == null) == true{#endsyntax#} @@ -2220,6 +2220,21 @@ value == null{#endsyntax#}
{#syntax#}(1 != 1) == false{#endsyntax#}
+ +
{#syntax#}a != null{#endsyntax#}
+ + + + + Returns {#syntax#}false{#endsyntax#} if a is {#syntax#}null{#endsyntax#}, otherwise returns {#syntax#}true{#endsyntax#}. + + +
{#syntax#}const value: ?u32 = null;
+(value != null) == false{#endsyntax#}
+ +
{#syntax#}a > b{#endsyntax#}