From 449c7badfe02d3cf16361434bbe456f291699c62 Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Mon, 6 Nov 2023 11:33:09 +0000 Subject: [PATCH] Use compound assignment --- .../Formatters/InternationalPhoneNumberFormatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhoneNumbers/Formatters/InternationalPhoneNumberFormatter.cs b/src/PhoneNumbers/Formatters/InternationalPhoneNumberFormatter.cs index 3cffdc53..694aacf1 100644 --- a/src/PhoneNumbers/Formatters/InternationalPhoneNumberFormatter.cs +++ b/src/PhoneNumbers/Formatters/InternationalPhoneNumberFormatter.cs @@ -24,7 +24,7 @@ protected string Format( if (charBetweenCallingCodeAndNsn != Chars.Null) { - arSize = arSize + 1; + arSize++; } Span ar = stackalloc char[arSize];