From 122f3dfb77de4b7405e01511e3c4510f37d523e1 Mon Sep 17 00:00:00 2001 From: Roman Ustinov Date: Fri, 27 Dec 2024 21:21:39 +0300 Subject: [PATCH] Fix typing error --- standard/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standard/expressions.md b/standard/expressions.md index 446e53e0f..7148ef876 100644 --- a/standard/expressions.md +++ b/standard/expressions.md @@ -4809,7 +4809,7 @@ In a null coalescing expression of the form `a ?? b`, if `a` is non-`null`, th The null coalescing operator is right-associative, meaning that operations are grouped from right to left. -> *Example*: An expression of the form `a ?? b ?? c` is evaluated as a `?? (b ?? c)`. In general terms, an expression of the form `E1 ?? E2 ?? ... ?? EN` returns the first of the operands that is non-`null`, or `null` if all operands are `null`. *end example* +> *Example*: An expression of the form `a ?? b ?? c` is evaluated as `a ?? (b ?? c)`. In general terms, an expression of the form `E1 ?? E2 ?? ... ?? EN` returns the first of the operands that is non-`null`, or `null` if all operands are `null`. *end example* The type of the expression `a ?? b` depends on which implicit conversions are available on the operands. In order of preference, the type of `a ?? b` is `A₀`, `A`, or `B`, where `A` is the type of `a` (provided that `a` has a type), `B` is the type of `b`(provided that `b` has a type), and `A₀` is the underlying type of `A` if `A` is a nullable value type, or `A` otherwise. Specifically, `a ?? b` is processed as follows: