Skip to content

Commit 8c579d3

Browse files
committed
docs: add warning about single not being threadsafe
1 parent 326eb2d commit 8c579d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bunit.web/Diffing/DiffMarkupFormatter.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ public class DiffMarkupFormatter : PrettyMarkupFormatter, IMarkupFormatter
1212
/// <summary>
1313
/// Gets an instance of the <see cref="DiffMarkupFormatter"/>.
1414
/// </summary>
15+
/// <remarks>
16+
/// The <see cref="DiffMarkupFormatter"/> is not thread safe, so using this singleton
17+
/// instance to format elements may not result in the desired effect.
18+
/// </remarks>
1519
public static new readonly DiffMarkupFormatter Instance = new();
1620

1721
/// <summary>

0 commit comments

Comments
 (0)