Skip to content

Commit 308acfc

Browse files
authored
Merge pull request #79 from Triplkrypl/4.0
small readme fix
2 parents 67214c3 + e48ace2 commit 308acfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,16 +321,16 @@ $isoCodes = new \Sokil\IsoCodes\IsoCodesFactory();
321321
$isoCodes->getCountries()->getByAlpha2('UA')->getLocalName();
322322
```
323323

324-
Get localized name of country by it's alpha2 code:
324+
Get localized name of country by it's alpha3 code:
325325
```php
326326
$isoCodes = new \Sokil\IsoCodes\IsoCodesFactory();
327-
$isoCodes->getCountries()->getByAlpha2('UKR')->getLocalName();
327+
$isoCodes->getCountries()->getByAlpha3('UKR')->getLocalName();
328328
```
329329

330330
Get localized name of country by it's numeric code:
331331
```php
332332
$isoCodes = new \Sokil\IsoCodes\IsoCodesFactory();
333-
$isoCodes->getCountries()->getByAlpha2('804')->getLocalName();
333+
$isoCodes->getCountries()->getByNumericCode('804')->getLocalName();
334334
```
335335

336336
Get localised list of countries

0 commit comments

Comments
 (0)