Skip to content

Commit

Permalink
fix typo in example code (#193)
Browse files Browse the repository at this point in the history
* fix "$temperature->getFormatteed" in example
fix "percipitation" in docs

* remove vscode end-of-file eol
  • Loading branch information
GhostPirateBob authored Jul 13, 2024
1 parent 2ffe2c7 commit 17b537b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ echo $weather->temperature;

## `Unit` objects

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

Expand Down

0 comments on commit 17b537b

Please sign in to comment.