Skip to content

Commit

Permalink
Merge pull request #331 from russjk/patch-1
Browse files Browse the repository at this point in the history
Fix typo: missing `$` symbol
  • Loading branch information
TGlide authored Nov 7, 2023
2 parents d80e638 + 93242d2 commit 6a43ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/docs/products/functions/examples/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 6a43ecf

Please sign in to comment.