diff --git a/src/routes/docs/products/functions/examples/+page.markdoc b/src/routes/docs/products/functions/examples/+page.markdoc index 95ec8058d7..25b390ad9c 100644 --- a/src/routes/docs/products/functions/examples/+page.markdoc +++ b/src/routes/docs/products/functions/examples/+page.markdoc @@ -154,7 +154,7 @@ return function ($context) { $amountInRupees = floatval($context->req->query['amount']); $response = $client->get('https://api.exchangerate.host/latest?base=INR&symbols=USD'); $data = $response->json(); - $amountInDollars = amountInRupees * $data['rates']['USD']; + $amountInDollars = $amountInRupees * $data['rates']['USD']; return $context->res->send(strval($amountInDollars)); }