Skip to content

Commit 855fc71

Browse files
BillWagnerCopilot
andauthored
Update docs/fsharp/language-reference/interpolated-strings.md
Co-authored-by: Copilot <[email protected]>
1 parent 89798e1 commit 855fc71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/fsharp/language-reference/interpolated-strings.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ printfn $"I think {3.0 + 0.14} is close to {System.Math.PI}!"
3434

3535
The contents in between each `{}` brace pair can be any F# expression.
3636

37-
For non-typed interpolated strings (without format specifiers), the expression is converted to a string using the `ToString()` method. If the expression evaluates to `null`, an empty string is used. For typed interpolated strings with format specifiers (such as `%s{expr}` or `%d{expr}`), the conversion follows the rules defined for that specific format specifier.
37+
For non-typed interpolated strings (without format specifiers), the expression is converted to a string using the `ToString()` method. If the expression evaluates to `null`, an empty string is used.
3838

39+
For typed interpolated strings with format specifiers (such as `%s{expr}` or `%d{expr}`), the conversion follows the rules defined for that specific format specifier.
3940
To escape a `{}` brace pair, write two of them like so:
4041

4142
```fsharp

0 commit comments

Comments
 (0)