Skip to content

Commit

Permalink
Apply suggestions from code review (App-vNext#1290)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Costello <martin@martincostello.com>
  • Loading branch information
IgorIgorevich94 and martincostello authored Aug 28, 2023
1 parent d8ccdd8 commit 2c49df8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Polly/Registry/PolicyRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ public bool TryRemove<TPolicy>(string key, out TPolicy policy) where TPolicy : I
/// <summary>
/// Compares the existing policy for the specified key with a specified policy, and if they are equal, updates the policy with a third value.
/// </summary>
/// <typeparam name="TPolicy">The type of the policy</typeparam>
/// <typeparam name="TPolicy">The type of the policy.</typeparam>
/// <param name="key">The key whose value is compared with comparisonPolicy, and possibly replaced.</param>
/// <param name="newPolicy">The policy that replaces the value for the specified <paramref name="key"/>, if the comparison results in equality.</param>
/// <param name="comparisonPolicy">The policy that is compared to the existing policy at the specified key.</param>
/// <returns>
/// true if the value with <paramref name="key"/> was equal to <paramref name="comparisonPolicy"/> and
/// replaced with <paramref name="newPolicy"/>; otherwise, false.
/// <see langword="true"/> if the value with <paramref name="key"/> was equal to <paramref name="comparisonPolicy"/> and
/// replaced with <paramref name="newPolicy"/>; otherwise, <see langword="false"/>.
/// </returns>
public bool TryUpdate<TPolicy>(string key, TPolicy newPolicy, TPolicy comparisonPolicy) where TPolicy : IsPolicy
{
Expand Down

0 comments on commit 2c49df8

Please sign in to comment.