Skip to content

Commit

Permalink
Add missing word to the documentation file (#77259)
Browse files Browse the repository at this point in the history
* Add missing word the documentation file

A sentence in `Compiler Breaking Changes - DotNet 8.md` is because of a missing word.

* Improve wording

---------

Co-authored-by: Jan Jones <[email protected]>
  • Loading branch information
kkm000 and jjonescz authored Feb 18, 2025
1 parent 7561e17 commit a97fa11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class C
***Introduced in Visual Studio 2022 version 17.10***

*Conversion* of a collection expression to a `struct` or `class` that implements `System.Collections.IEnumerable` and *does not* have a strongly-typed `GetEnumerator()`
requires the elements in the collection expression are implicitly convertible to the `object`.
requires that the elements in the collection expression are implicitly convertible to `object`.
Previously, the elements of a collection expression targeting an `IEnumerable` implementation were assumed to be convertible to `object`, and converted only when binding to the applicable `Add` method.

This additional requirement means that collection expression conversions to `IEnumerable` implementations are treated consistently with other target types where the elements in the collection expression must be implicitly convertible to the *iteration type* of the target type.
Expand Down

0 comments on commit a97fa11

Please sign in to comment.