Skip to content

Commit

Permalink
Modify rule S4035: Fix typo in 'Why is this an issue' section - "IEqu…
Browse files Browse the repository at this point in the history
…itable<T>" -> "IEquatable<T>" (#3535)

Co-authored-by: Scott Moore <scott.moore@viavisolutions.com>
  • Loading branch information
Scomocouk and Scott Moore authored Jan 24, 2024
1 parent d1fe2c3 commit df457e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/S4035/csharp/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ When a class implements the `IEquatable<T>` interface, it enters a contract that
Alternatively `IEqualityComparer<T>` provides a safer interface and is used by collections or `Equals` could be made `virtual`.


This rule raises an issue when an unsealed, `public` or `protected` class implements `IEquitable<T>` and the `Equals` is neither `virtual` nor `abstract`.
This rule raises an issue when an unsealed, `public` or `protected` class implements `IEquatable<T>` and the `Equals` is neither `virtual` nor `abstract`.


=== Noncompliant code example
Expand Down

0 comments on commit df457e2

Please sign in to comment.