Skip to content

[UUF] Code examples don't match text #51294

@gewarren

Description

@gewarren

Type of issue

Missing information

Description

The code examples in multiple places do not match the article text, anymore, and it looks like the article just didn't get updated to match the code samples when the code samples were modernized. For example, the c# code sample for illustrating the accumulation of error due to unrepresentable values uses string interpolation in its output lines. However, the text (both in the article and even in the comments inside the code sample) refers to it as if it were using the indexed form of Console.WriteLine, which could be extremely confusing to someone not already familiar with the language and with both of those forms. The code sample should be updated so that its internal comments are consistent with the code itself, and the text should be updated to match, as well, using the string interpolation form. Similar issues exist in other parts of the article, as well.

Page URL

https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-single

Content source URL

https://github.com/dotnet/docs/blob/main/docs/fundamentals/runtime-libraries/system-single.md

Document Version Independent Id

30dd4540-b209-f25f-a2aa-f65a050f822b

Platform Id

070dde21-46cb-c5dd-0633-f82c7b327f44

Article author

@gewarren

Metadata

  • ID: 6f24278d-0f77-34d2-9c4b-0edf6e7eb68a
  • PlatformId: 070dde21-46cb-c5dd-0633-f82c7b327f44
  • Service: dotnet-fundamentals

Related Issues


Associated WorkItem - 548271

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions