You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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.
* Update docs/standard/base-types/composite-formatting.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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`.
45
+
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`.
0 commit comments