Skip to content

Commit 17b537b

Browse files
fix typo in example code (#193)
* fix "$temperature->getFormatteed" in example fix "percipitation" in docs * remove vscode end-of-file eol
1 parent 2ffe2c7 commit 17b537b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ echo $weather->temperature;
4747

4848
## `Unit` objects
4949

50-
Most values like temperature, percipitation, etc., are returned as instances of the
50+
Most values like temperature, precipitation, etc., are returned as instances of the
5151
`Cmfcmf\OpenWeatherMap\Util\Unit` class. These objects provide you with
5252
the value (e.g., `26.9`),
5353
the unit (e.g., `°C`),
@@ -62,7 +62,7 @@ $temperature = $weather->temperature->now;
6262
$temperature->getValue(); // 26.9
6363
$temperature->getUnit(); // "°C"
6464
$temperature->getDescription(); // ""
65-
$temperature->getFormatteed(); // "26.9 °C"
65+
$temperature->getFormatted(); // "26.9 °C"
6666
$temperature->__toString(); // "26.9 °C"
6767
```
6868

0 commit comments

Comments
 (0)