Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

typo fix #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 content/csharp/getting-started/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Note in the last example that multiple methods are chained together, such that t

## Replacing Parts of Strings

A frequent scenario when working with strings is the construction of a string that is composed of some fixed parts, and a part that is variable. You saw in the [last lesson](types-variables) how you could construct such a string using ``$"Hello {name}!`` syntax. This is known as *string interpolation*, and is a new feature in C# 6. The same string can also be constructed using concatenation (`` "Hello " + name + "!"``). Strings also support rich formatting, which at its simplest allows for this kind of replacement. To use string formatting, you specify a format string, which includes special placeholder values, and pass the format string and the replacement values to the ``Format`` method. Finally, you can use the ``Replace`` method to replace part of a string with another string. Consider the following examples:
A frequent scenario when working with strings is the construction of a string that is composed of some fixed parts, and a part that is variable. You saw in the [last lesson](types-variables) how you could construct such a string using ``$"Hello {name}!"`` syntax. This is known as *string interpolation*, and is a new feature in C# 6. The same string can also be constructed using concatenation (`` "Hello " + name + "!"``). Strings also support rich formatting, which at its simplest allows for this kind of replacement. To use string formatting, you specify a format string, which includes special placeholder values, and pass the format string and the replacement values to the ``Format`` method. Finally, you can use the ``Replace`` method to replace part of a string with another string. Consider the following examples:

```{.snippet}
string name = "Steve";
Expand Down