Skip to content

Commit e68671f

Browse files
sapph42jskeet
authored andcommitted
Update expressions.md
Fix formatting typo in 12.15 The null coalescing operator
1 parent 81d9d57 commit e68671f

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
@@ -4820,7 +4820,7 @@ The type of the expression `a ?? b` depends on which implicit conversions are
48204820
- Otherwise, if `A` exists and is a nullable value type, `b` has a type `B` and an implicit conversion exists from `A₀` to `B`, the result type is `B`. At run-time, `a` is first evaluated. If `a` is not `null`, `a` is unwrapped to type `A₀` and converted to type `B`, and this becomes the result. Otherwise, `b` is evaluated and becomes the result.
48214821
- Otherwise, if `b` has a type `B` and an implicit conversion exists from `a` to `B`, the result type is `B`. At run-time, `a` is first evaluated. If `a` is not `null`, `a` is converted to type `B`, and this becomes the result. Otherwise, `b` is evaluated and becomes the result.
48224822

4823-
Otherwise, `a` and `b` are incompatible, and `a` compile-time error occurs.
4823+
Otherwise, `a` and `b` are incompatible, and a compile-time error occurs.
48244824

48254825
## 12.16 The throw expression operator
48264826

0 commit comments

Comments
 (0)