diff --git a/docs/fsharp/language-reference/strings.md b/docs/fsharp/language-reference/strings.md index c2a6f9dbc6718..a6b331dec8c2f 100644 --- a/docs/fsharp/language-reference/strings.md +++ b/docs/fsharp/language-reference/strings.md @@ -50,7 +50,7 @@ let xmlFragment1 = @"" let xmlFragment2 = """""" ``` -In code, strings that have line breaks are accepted and the line breaks are interpreted as the newline encoding used in source, unless a backslash character is the last character before the line break. Leading white space on the next line is ignored when the backslash character is used. The following code produces a string `str1` that has value `"abc\ndef"` and a string `str2` that has value `"abcdef"`. +In code, strings that have line breaks are accepted and the line breaks are interpreted as the newline encoding used in source, unless a backslash character is the last character before the line break. Leading white space on the next line is ignored when the backslash character is used. The following code produces a string `str1` that has value `"abc\n def"` and a string `str2` that has value `"abcdef"`. [!code-fsharp[Main](~/samples/snippets/fsharp/lang-ref-1/snippet1001.fs)] diff --git a/samples/snippets/fsharp/lang-ref-1/snippet1001.fs b/samples/snippets/fsharp/lang-ref-1/snippet1001.fs index ec3ca25918762..6452960196fc6 100644 --- a/samples/snippets/fsharp/lang-ref-1/snippet1001.fs +++ b/samples/snippets/fsharp/lang-ref-1/snippet1001.fs @@ -1,7 +1,7 @@ let str1 = "abc -def" + def" let str2 = "abc\ -def" + def"