Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
afxres committed Sep 21, 2024
1 parent ba69b95 commit 3500538
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions code/Binary.FSharp/GeneratorBuilderFSharpExtensions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ open System.Runtime.CompilerServices
[<Extension>]
type GeneratorBuilderFSharpExtensions =
[<Extension>]
[<RequiresDynamicCode("Requires dynamic code for binary serialization.")>]
[<RequiresUnreferencedCode("Requires public members for binary serialization.")>]
[<RequiresDynamicCode("Require dynamic code for binary serialization.")>]
[<RequiresUnreferencedCode("Require public members for binary serialization.")>]
static member AddFSharpConverterCreators(builder : IGeneratorBuilder) =
builder
.AddConverterCreator(ListConverterCreator())
Expand Down
4 changes: 2 additions & 2 deletions code/Binary.Tests/Miscellaneous/TrimAnalyzerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void KnownRequiresDynamicCodeMessage()
var memberWithKnownAttributes = memberAttributes.Where(x => x.Value.Any(x => x is RequiresDynamicCodeAttribute)).ToImmutableDictionary();
var messages = memberWithKnownAttributes.Select(x => x.Value.OfType<RequiresDynamicCodeAttribute>().Single().Message).ToHashSet();
var message = Assert.Single(messages);
Assert.Equal("Requires dynamic code for binary serialization.", message);
Assert.Equal("Require dynamic code for binary serialization.", message);
}

[Fact(DisplayName = "Known 'RequiresUnreferencedCodeAttribute' Message")]
Expand All @@ -57,6 +57,6 @@ public void KnownRequiresUnreferencedCodeMessage()
var memberWithKnownAttributes = memberAttributes.Where(x => x.Value.Any(x => x is RequiresUnreferencedCodeAttribute)).ToImmutableDictionary();
var messages = memberWithKnownAttributes.Select(x => x.Value.OfType<RequiresUnreferencedCodeAttribute>().Single().Message).ToHashSet();
var message = Assert.Single(messages);
Assert.Equal("Requires public members for binary serialization.", message);
Assert.Equal("Require public members for binary serialization.", message);
}
}
4 changes: 2 additions & 2 deletions code/Binary/Internal/CommonDefine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ internal static class CommonDefine
{
internal const string DebuggerDisplayValue = "{ToString(),nq}";

internal const string RequiresDynamicCodeMessage = "Requires dynamic code for binary serialization.";
internal const string RequiresDynamicCodeMessage = "Require dynamic code for binary serialization.";

internal const string RequiresUnreferencedCodeMessage = "Requires public members for binary serialization.";
internal const string RequiresUnreferencedCodeMessage = "Require public members for binary serialization.";

internal const BindingFlags PublicInstanceBindingFlags = BindingFlags.Instance | BindingFlags.Public;
}

0 comments on commit 3500538

Please sign in to comment.