Skip to content

Commit b34d5db

Browse files
committedJul 11, 2024
fix "$temperature->getFormatteed" in example
fix "percipitation" in docs
1 parent 2ffe2c7 commit b34d5db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎docs/docs/usage.md

+3-3
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

@@ -116,4 +116,4 @@ try {
116116
} catch (\Exception $e) {
117117
// TODO: Handle general exception
118118
}
119-
```
119+
```

0 commit comments

Comments
 (0)