Correct spelling mistake in UNT0016.md (#329)

This commit is contained in:
Chandler Cheng 2024-06-02 20:21:23 +12:00 коммит произвёл GitHub
Родитель 140c1ba061
Коммит 6723723d76
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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