Skip to content

Commit 88784e8

Browse files
authored
Fix invalid code in extension members example (#45983)
1 parent d94f820 commit 88784e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/whats-new/csharp-14.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static class Enumerable
5252
public static IEnumerable<TSource> Combine(IEnumerable<TSource> first, IEnumerable<TSource> second) { ... }
5353

5454
// static extension property:
55-
public static IEnumerable<TSource> Identity => yield return default;
55+
public static IEnumerable<TSource> Identity => Enumerable.Empty<TSource>();
5656
}
5757
}
5858
```

0 commit comments

Comments
 (0)