Skip to content

Commit

Permalink
Correct spelling mistake in UNT0016.md (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
MilkBiscuit authored Jun 2, 2024
1 parent 140c1ba commit 6723723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/UNT0016.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UNT0016 Unsafe way to get the method name

Using `Invoke`, `InvokeRepeating`, `CancelInvoke`, `StartCoroutine` or `StopCoroutine` with a first argument being a string literal is not type safe. Instead it's recommanded to use the `nameof` operator or a direct call for coroutines. The further benefit of doing this is the ability for the method to use a rename refactoring without remembering to update the string literals.
Using `Invoke`, `InvokeRepeating`, `CancelInvoke`, `StartCoroutine` or `StopCoroutine` with a first argument being a string literal is not type safe. Instead it's recommended to use the `nameof` operator or a direct call for coroutines. The further benefit of doing this is the ability for the method to use a rename refactoring without remembering to update the string literals.

## Examples of patterns that are flagged by this analyzer

Expand Down

0 comments on commit 6723723

Please sign in to comment.