Skip to content

Commit 9d8b671

Browse files
authored
Fix lambda example in delegate operator page (#29364)
1 parent edfbeda commit 9d8b671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/language-reference/operators/delegate-operator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Action a = StaticFunction;
5454
Before C# 11, you'd need to use a lambda expression to reuse a single delegate object:
5555

5656
```csharp
57-
Action a = () = StaticFunction;
57+
Action a = () => StaticFunction();
5858
```
5959

6060
## C# language specification

0 commit comments

Comments
 (0)