File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ echo $weather->temperature;
47
47
48
48
## ` Unit ` objects
49
49
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
51
51
` Cmfcmf\OpenWeatherMap\Util\Unit ` class. These objects provide you with
52
52
the value (e.g., ` 26.9 ` ),
53
53
the unit (e.g., ` °C ` ),
@@ -62,7 +62,7 @@ $temperature = $weather->temperature->now;
62
62
$temperature->getValue(); // 26.9
63
63
$temperature->getUnit(); // "°C"
64
64
$temperature->getDescription(); // ""
65
- $temperature->getFormatteed (); // "26.9 °C"
65
+ $temperature->getFormatted (); // "26.9 °C"
66
66
$temperature->__toString(); // "26.9 °C"
67
67
```
68
68
@@ -116,4 +116,4 @@ try {
116
116
} catch (\Exception $e) {
117
117
// TODO: Handle general exception
118
118
}
119
- ```
119
+ ```
You can’t perform that action at this time.
0 commit comments