Skip to content

Commit 8857f12

Browse files
authored
Update prepare-libraries-for-trimming.md (#42785)
Fixes #42607
1 parent 7c6e680 commit 8857f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/deploying/trimming/prepare-libraries-for-trimming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Consider code that:
220220
* The intent can't be expressed with the annotations.
221221
* Generates a warning but doesn't represent a real issue at run time.
222222

223-
The warnings can be suppressed <xref:System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessageAttribute>. This is similar to `SuppressMessageAttribute`, but it's persisted in IL and respected during trim analysis.
223+
The warnings can be suppressed by <xref:System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessageAttribute>. This is similar to `SuppressMessageAttribute`, but it's persisted in IL and respected during trim analysis.
224224

225225
> [!WARNING]
226226
> When suppressing warnings, you are responsible for guaranteeing the trim compatibility of the code based on invariants that you know to be true by inspection and testing. Use caution with these annotations, because if they are incorrect, or if invariants of your code change, they might end up hiding incorrect code.

0 commit comments

Comments
 (0)