From 6723723d76ec635d2656cfd590ce25651ade7128 Mon Sep 17 00:00:00 2001 From: Chandler Cheng Date: Sun, 2 Jun 2024 20:21:23 +1200 Subject: [PATCH] Correct spelling mistake in UNT0016.md (#329) --- doc/UNT0016.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/UNT0016.md b/doc/UNT0016.md index 03c60a44..b23d347b 100644 --- a/doc/UNT0016.md +++ b/doc/UNT0016.md @@ -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