Skip to content

Commit

Permalink
docs: add warning about single not being threadsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
egil committed Oct 14, 2023
1 parent 326eb2d commit 8c579d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bunit.web/Diffing/DiffMarkupFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ public class DiffMarkupFormatter : PrettyMarkupFormatter, IMarkupFormatter
/// <summary>
/// Gets an instance of the <see cref="DiffMarkupFormatter"/>.
/// </summary>
/// <remarks>
/// The <see cref="DiffMarkupFormatter"/> is not thread safe, so using this singleton
/// instance to format elements may not result in the desired effect.
/// </remarks>
public static new readonly DiffMarkupFormatter Instance = new();

/// <summary>
Expand Down

0 comments on commit 8c579d3

Please sign in to comment.