Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/standard/base-types/composite-formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Consider the following <xref:System.String.Format%2A> code fragment:
:::code language="vb" source="./snippets/composite-formatting/net/vb/Program.vb" id="basic":::

<!-- markdownlint-disable-next-line no-space-in-code -->
The fixed text is `Name = `&nbsp;and `, hours = `. The format items are `{0}`, whose index of 0 corresponds to the object `name`, and `{1:hh}`, whose index of 1 corresponds to the object `DateTime.Now`.
The fixed text is `Name = `&nbsp;and `, hours = `. The format items are `{0}`, whose index of 0 corresponds to the string `"Fred"`, and `{1:hh}`, whose index of 1 corresponds to the object `DateTime.Now`.
Copy link

Copilot AI Oct 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The phrase "object DateTime.Now" is imprecise here; consider clarifying terminology and using "string literal" for consistency. Suggested rewrite: "The fixed text is Name =  and , hours = . The format items are {0}, whose index of 0 corresponds to the string literal "Fred", and {1:hh}, whose index of 1 corresponds to the value of DateTime.Now."

Suggested change
The fixed text is `Name = `&nbsp;and `, hours = `. The format items are `{0}`, whose index of 0 corresponds to the string `"Fred"`, and `{1:hh}`, whose index of 1 corresponds to the object `DateTime.Now`.
The fixed text is `Name = `&nbsp;and `, hours = `. The format items are `{0}`, whose index of 0 corresponds to the string literal `"Fred"`, and `{1:hh}`, whose index of 1 corresponds to the value of `DateTime.Now`.

Copilot uses AI. Check for mistakes.


## Format item syntax

Expand Down
Loading