Skip to content

Commit

Permalink
Fixed a mistake in tim-from-marketing exercise introduction where the…
Browse files Browse the repository at this point in the history
… null-coalescing operator (??) was shown to be used without an assignment operator. (#2170)
  • Loading branch information
Munib97 authored Aug 29, 2023
1 parent f45017b commit 7c8407d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/concept/tim-from-marketing/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ The `??` operator allows one to return a default value when the value is `null`:

```csharp
string? name1 = "John";
name1 ?? "Paul"; // => "John"
name1 ??= "Paul"; // => "John"
string? name2 = null;
name2 ?? "George"; // => "George"
name2 ??= "George"; // => "George"
```

The `?.` operator allows one to call members safely on a possibly `null` value:
Expand Down

0 comments on commit 7c8407d

Please sign in to comment.