From 0ec93a43748064645ac2b78eebf7d6edc50190cc Mon Sep 17 00:00:00 2001 From: Guilherme d'Almeida Date: Wed, 15 Oct 2025 17:45:05 -0300 Subject: [PATCH] Fixing examples on Composit format string The example on (Composite format string)[https://learn.microsoft.com/en-us/dotnet/standard/base-types/composite-formatting#composite-format-string] was reffering to a object called name. However, the String.Format method was using simply a string. --- docs/standard/base-types/composite-formatting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/standard/base-types/composite-formatting.md b/docs/standard/base-types/composite-formatting.md index 5e37ee4bba0b8..c7c5bec18efee 100644 --- a/docs/standard/base-types/composite-formatting.md +++ b/docs/standard/base-types/composite-formatting.md @@ -41,7 +41,7 @@ Consider the following code fragment: :::code language="vb" source="./snippets/composite-formatting/net/vb/Program.vb" id="basic"::: -The fixed text is `Name = ` 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 = ` 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`. ## Format item syntax