From 17b537b43382801588eca47f8aba0b2c27b66372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=93=96=20=E2=93=9F=20=E2=93=91?= Date: Sat, 13 Jul 2024 14:04:03 +0800 Subject: [PATCH] fix typo in example code (#193) * fix "$temperature->getFormatteed" in example fix "percipitation" in docs * remove vscode end-of-file eol --- docs/docs/usage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/usage.md b/docs/docs/usage.md index 1c08cb3..476b2f0 100755 --- a/docs/docs/usage.md +++ b/docs/docs/usage.md @@ -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`), @@ -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" ```