Skip to content

Commit 81d9d57

Browse files
authored
Fix typing error (#1241)
1 parent 373b038 commit 81d9d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4809,7 +4809,7 @@ In a null coalescing expression of the form `a ?? b`, if `a` is non-`null`, th
48094809

48104810
The null coalescing operator is right-associative, meaning that operations are grouped from right to left.
48114811

4812-
> *Example*: An expression of the form `a ?? b ?? c` is evaluated as `?? (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*
4812+
> *Example*: An expression of the form `a ?? b ?? c` is evaluated as `?? (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*
48134813
48144814
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:
48154815

0 commit comments

Comments
 (0)