Skip to content

Commit c2d2164

Browse files
iubnsBillWagner
authored andcommitted
Update interpolated-strings.md (#3350)
* Update interpolated-strings.md * Update interpolated-strings.md
1 parent 830b9a5 commit c2d2164

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/csharp/language-reference/keywords/interpolated-strings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Used to construct strings. An interpolated string looks like a template string
1919
The arguments of an interpolated string are easier to understand than a [composite format string](../../../standard/base-types/composite-formatting.md#composite-format-string). For example, the interpolated string
2020

2121
```csharp
22-
Console.WriteLine($"Name = {name}, hours = {hours:hh}");
22+
Console.WriteLine($"Name = {name}, hours = {date:hh}");
2323
```
24-
contains two interpolated expressions, '{name}' and '{hours:hh}'. The equivalent composite format string is:
24+
contains two interpolated expressions, '{name}' and '{date:hh}'. The equivalent composite format string is:
2525

2626
```csharp
27-
Console.WriteLine("Name = {0}, hours = {1:hh}", name, hours);
27+
Console.WriteLine("Name = {0}, hours = {1:hh}", name, date);
2828
```
2929

3030
The structure of an interpolated string is:

0 commit comments

Comments
 (0)