Correct spelling mistake in UNT0016.md (#329)
This commit is contained in:
Родитель
140c1ba061
Коммит
6723723d76
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче