Skip to content

Commit 23b7fa6

Browse files
committed
chore: Update GetCountryByPhoneCode method name and example
1 parent aceae33 commit 23b7fa6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,11 @@ For more detailed instructions and comprehensive information about the library,
8282
```
8383

8484

85-
This example demonstrates how to retrieve countries with a specific phone code using the `GetCountriesByPhoneCode` method. In this case, we're fetching all countries with the phone code "+1".
85+
This example demonstrates how to retrieve a country with a specific phone code using the `GetCountryByPhoneCode` method. In this case, we're fetching the country with the phone code "+233".
8686

8787
```csharp
88-
var countriesWithPhoneCode = helper.GetCountriesByPhoneCode("+233");
89-
foreach (var country in countriesWithPhoneCode)
90-
{
91-
Console.WriteLine(country.NameCountryName);
92-
}
93-
88+
var CountryName = helper.GetCountryByPhoneCode("+233");
89+
Console.WriteLine(CountryName);
9490
```
9591

9692

0 commit comments

Comments
 (0)